2015-08-15 21:45:16 +08:00
|
|
|
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
|
|
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
|
|
|
|
class c:
|
|
|
|
a = 1
|
|
|
|
def f():
|
|
|
|
pass
|
2015-08-19 13:39:22 +08:00
|
|
|
def m(self):
|
|
|
|
pass
|
2015-08-15 21:45:16 +08:00
|
|
|
|
2015-11-17 06:04:08 +08:00
|
|
|
# CHECK-L: c:<constructor c {a: int(width='a), f: ()->NoneType delay('b), m: (self:<instance c>)->NoneType delay('c)}>
|
2015-08-15 21:45:16 +08:00
|
|
|
c
|
|
|
|
# CHECK-L: .a:int(width='a)
|
|
|
|
c.a
|
2015-11-17 06:04:08 +08:00
|
|
|
# CHECK-L: .f:()->NoneType delay('b)
|
2015-08-15 21:45:16 +08:00
|
|
|
c.f
|
2015-08-19 13:39:22 +08:00
|
|
|
|
2015-12-02 21:48:14 +08:00
|
|
|
# CHECK-L: .m:method(fn=(self:<instance c>)->NoneType delay('c), self=<instance c>)
|
2015-08-19 13:39:22 +08:00
|
|
|
c().m()
|