remove legacy :int type
This commit is contained in:
parent
a3585870b9
commit
7d29a85187
@ -10,8 +10,6 @@ module Register
|
||||
raise "wrong type for register init #{r}" unless r.is_a? Symbol
|
||||
raise "double r #{r}" if r.to_s[0,1] == "rr"
|
||||
raise "not reg #{r}" unless self.class.look_like_reg r
|
||||
type = :Integer if type == :int
|
||||
raise "Legacy type error, should be class name not ref" if (type == :ref)
|
||||
@type = type
|
||||
@symbol = r
|
||||
@value = value
|
||||
|
@ -32,13 +32,13 @@ module Register
|
||||
end
|
||||
|
||||
def test_field_int
|
||||
add_space_field(:bro,:int)
|
||||
add_space_field(:bro,:Integer)
|
||||
@input = s(:operator_value, :+, s(:field_access,s(:receiver, s(:name, :self)), s(:field, s(:name, :bro))), s(:int, 3))
|
||||
check
|
||||
end
|
||||
|
||||
def test_int_field
|
||||
add_space_field(:bro,:int)
|
||||
add_space_field(:bro,:Integer)
|
||||
@input = s(:operator_value, :+, s(:int, 3), s(:field_access, s(:receiver, s(:name, :self)), s(:field,s(:name, :bro))))
|
||||
check
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user