forked from M-Labs/artiq
1
0
Fork 0
artiq/lit-test/test/inferencer/scoping.py

10 lines
184 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
# RUN: OutputCheck %s --file-to-check=%t
2015-07-18 13:13:49 +08:00
# CHECK-L: []:list(elt=int(width='a))
x = []
def f():
global x
2015-07-18 13:13:49 +08:00
x[0] = 1