mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-26 18:38:13 +08:00
14 lines
329 B
Python
14 lines
329 B
Python
# RUN: %python -m artiq.compiler.testbench.irgen %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
def x(y): pass
|
|
|
|
# CHECK-L: NoneType input.a(environment(...) %ARG.ENV, NoneType %ARG.self) {
|
|
# CHECK-NOT-L: getlocal('self') %ENV
|
|
# CHECK-L: call (y:NoneType)->NoneType %LOC.x, NoneType %ARG.self
|
|
|
|
def a(self):
|
|
x(self)
|
|
|
|
a(None)
|