rubyx/test/elf/test_zero.rb

21 lines
369 B
Ruby
Raw Normal View History

require_relative "helper"
2016-12-30 12:15:08 +01:00
module Elf
2016-12-30 12:15:08 +01:00
class TestZeroCode < FullTest
2016-12-31 14:08:32 +01:00
def setup
super
@linker = RubyX::RubyXCompiler.new.ruby_to_risc(as_main("return 1"),:arm)
@linker.position_all
@linker.create_binary
end
2016-12-31 14:08:32 +01:00
def test_empty_translate
writer = Elf::ObjectWriter.new(@linker )
writer.save "test/zero.o"
2016-12-31 14:08:32 +01:00
end
2016-12-30 12:15:08 +01:00
end
end