mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 01:36:39 +08:00
19 lines
321 B
Python
19 lines
321 B
Python
# RUN: %python -m artiq.compiler.testbench.jit %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
def f():
|
|
with parallel:
|
|
if True:
|
|
print(1)
|
|
else:
|
|
print(2)
|
|
while False:
|
|
print(3)
|
|
break
|
|
delay_mu(1)
|
|
print(4)
|
|
|
|
# CHECK-L: 1
|
|
# CHECK-L: 4
|
|
f()
|