mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-20 17:06:30 +08:00
31 lines
379 B
Python
31 lines
379 B
Python
|
# RUN: %python -m artiq.compiler.testbench.jit %s
|
||
|
|
||
|
cond, count = True, 0
|
||
|
while cond:
|
||
|
count += 1
|
||
|
cond = False
|
||
|
assert count == 1
|
||
|
|
||
|
while False:
|
||
|
pass
|
||
|
else:
|
||
|
assert True
|
||
|
|
||
|
cond = True
|
||
|
while cond:
|
||
|
cond = False
|
||
|
else:
|
||
|
assert True
|
||
|
|
||
|
while True:
|
||
|
break
|
||
|
assert False
|
||
|
else:
|
||
|
assert False
|
||
|
|
||
|
cond = True
|
||
|
while cond:
|
||
|
cond = False
|
||
|
continue
|
||
|
assert False
|