Skip to content

Commit

Permalink
lit-test: add tests for control flow in parallel blocks.
Browse files Browse the repository at this point in the history
whitequark committed Dec 16, 2015
1 parent 2570932 commit 142b9b0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lit-test/test/interleaving/control_flow.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 142b9b0

Please sign in to comment.