forked from M-Labs/artiq
1
0
Fork 0

lit-test: add tests for control flow in parallel blocks.

This commit is contained in:
whitequark 2015-12-16 19:39:07 +08:00
parent 2570932264
commit 142b9b059b
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# 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)
delay_mu(1)
print(4)
# CHECK-L: 1
# CHECK-L: 4
f()