rubyx/test/elf/test_hello.rb
Torsten Ruger b81d9565de fix binary code offset when calling
in other words, remember the arm pipeline being 8
2018-05-29 17:03:20 +03:00

19 lines
367 B
Ruby

require_relative "../helper"
class HelloTest < MiniTest::Test
def setup
Risc.machine
end
def check
Vool::VoolCompiler.ruby_to_binary( "class Space;def main(arg);#{@input};end;end" )
writer = Elf::ObjectWriter.new(Risc.machine)
writer.save "test/hello.o"
end
def test_string_put
@input = "return 'Hello'.putstring"
check
end
end