forked from M-Labs/artiq
1
0
Fork 0

lit-test: update to follow IR serialization changes.

This commit is contained in:
whitequark 2015-11-17 01:04:08 +03:00
parent 9e0a5b9404
commit 3fb12b74d6
2 changed files with 4 additions and 4 deletions

View File

@ -8,12 +8,12 @@ class c:
def m(self): def m(self):
pass pass
# CHECK-L: c:<constructor c {a: int(width='a), f: ()->NoneType, m: (self:<instance c>)->NoneType}> # CHECK-L: c:<constructor c {a: int(width='a), f: ()->NoneType delay('b), m: (self:<instance c>)->NoneType delay('c)}>
c c
# CHECK-L: .a:int(width='a) # CHECK-L: .a:int(width='a)
c.a c.a
# CHECK-L: .f:()->NoneType # CHECK-L: .f:()->NoneType delay('b)
c.f c.f
# CHECK-L: .m:method(fn=(self:<instance c>)->NoneType, self=<instance c>) # CHECK-L: .m:method(fn=(self:<instance c>)->NoneType delay('c), self=<instance c>)
c().m() c().m()

View File

@ -8,7 +8,7 @@ class c:
def g(self): def g(self):
pass pass
# CHECK-L: ${LINE:+1}: error: function 'f()->NoneType' of class 'c' cannot accept a self argument # CHECK-L: ${LINE:+1}: error: function 'f()->NoneType delay('a)' of class 'c' cannot accept a self argument
c().f() c().f()
c.g(1) c.g(1)