new field access code and test. wip as field def broken

This commit is contained in:
Torsten Ruger
2015-09-27 11:28:06 +03:00
parent c4f89441e2
commit b99b392481
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,22 @@
require_relative "compiler_helper"
require_relative "code_checker"
module Virtual
class TestFoo < MiniTest::Test
include CodeChecker
def test_foo2
@string_input = <<HERE
int a
int foo(int x)
int b = self.a
return b +x
end
HERE
@expect = [ Virtual::Return ]
check
end
end
end