artiq/lit-test/test/inferencer/scoping.py

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