fa4949fc80
only resolved to SaveReturn anyway also Halt instruction wasn’t used, gone passes changed to start at register
20 lines
282 B
Ruby
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
|