rubyx/test/compiler/test_field_access.rb
Torsten Ruger 5a2a857485 finish the field access
now that fields can be defined
2015-09-27 12:59:50 +03:00

23 lines
357 B
Ruby

require_relative "compiler_helper"
require_relative "code_checker"
module Virtual
class TestFoo < MiniTest::Test
include CodeChecker
def test_foo2
@string_input = <<HERE
field int a
int foo(int x)
int b = self.a
return b +x
end
HERE
@output = [ [Virtual::MethodEnter] , [Virtual::MethodReturn] ]
check
end
end
end