rubyx/test/elf/test_zero.rb
Torsten Ruger 8a81d41d5e Move booting to RubyXCompiler init
Also pass the source into the compile method.
This way compiler can be reused for subsequent compile.
Does remove some double boots, but no major time save
2018-09-02 13:57:19 +03:00

21 lines
369 B
Ruby

require_relative "helper"
module Elf
class TestZeroCode < FullTest
def setup
super
@linker = RubyX::RubyXCompiler.new.ruby_to_risc(as_main("return 1"),:arm)
@linker.position_all
@linker.create_binary
end
def test_empty_translate
writer = Elf::ObjectWriter.new(@linker )
writer.save "test/zero.o"
end
end
end