2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-21 09:26:29 +08:00
artiq/lit-test/compiler/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