rubyx/test/elf/test_zero.rb
Torsten Ruger 4b33d1c056 fix many a test especially whole mom
but some positioning bug still in there preventing
binary to work
2018-07-02 17:01:07 +03:00

21 lines
370 B
Ruby

require_relative "helper"
module Elf
class TestZeroCode < FullTest
def setup
super
@linker = RubyX::RubyXCompiler.new(as_main("return 1")).ruby_to_risc(: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