2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-19 16:36:29 +08:00
artiq/lit-test/compiler/inferencer/scoping.py
2015-07-18 08:13:49 +03:00

10 lines
184 B
Python

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