rubyx/test/compiler/test_field_access.rb

23 lines
357 B
Ruby
Raw Normal View History

require_relative "compiler_helper"
require_relative "code_checker"
module Virtual
class TestFoo < MiniTest::Test
include CodeChecker
2015-09-27 15:06:48 +02:00
def test_foo3
@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