forked from M-Labs/artiq
17 lines
209 B
Python
17 lines
209 B
Python
|
# RUN: %python -m artiq.compiler.testbench.jit %s
|
||
|
# RUN: %python %s
|
||
|
|
||
|
class c:
|
||
|
a = 1
|
||
|
|
||
|
i = c()
|
||
|
|
||
|
# CHECK-L: a 1
|
||
|
print("a", i.a)
|
||
|
|
||
|
def f():
|
||
|
c = None
|
||
|
# CHECK-L: shadow a 1
|
||
|
print("shadow a", i.a)
|
||
|
f()
|