mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 02:44:01 +08:00
20 lines
466 B
Python
20 lines
466 B
Python
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
class c:
|
|
a = 1
|
|
def f():
|
|
pass
|
|
def m(self):
|
|
pass
|
|
|
|
# CHECK-L: c:<constructor c {a: int(width='a), f: ()->NoneType delay('b), m: (self:<instance c>)->NoneType delay('c)}>
|
|
c
|
|
# CHECK-L: .a:int(width='a)
|
|
c.a
|
|
# CHECK-L: .f:()->NoneType delay('b)
|
|
c.f
|
|
|
|
# CHECK-L: .m:method(fn=(self:<instance c>)->NoneType delay('c), self=<instance c>)
|
|
c().m()
|