rubyx/test/compiler/fragments/test_class.rb
Torsten Ruger fa4949fc80 remove MethodEnter Instructions
only resolved to SaveReturn anyway
also Halt instruction wasn’t used, gone
passes changed to start at register
2015-10-18 17:39:35 +03:00

20 lines
282 B
Ruby

require_relative 'helper'
class TestBasicClass < MiniTest::Test
include Fragments
def test_class_basic
@string_input = <<HERE
class Bar
int buh()
return 1
end
end
HERE
@expect = [ [SaveReturn] ,[RegisterTransfer,GetSlot,FunctionReturn]]
check
end
end