mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-20 17:06:30 +08:00
29 lines
377 B
Python
29 lines
377 B
Python
|
# RUN: %python -m artiq.compiler.testbench.jit %s
|
||
|
|
||
|
count = 0
|
||
|
for x in range(10):
|
||
|
count += 1
|
||
|
assert count == 10
|
||
|
|
||
|
for x in range(10):
|
||
|
assert True
|
||
|
else:
|
||
|
assert True
|
||
|
|
||
|
for x in range(0):
|
||
|
assert False
|
||
|
else:
|
||
|
assert True
|
||
|
|
||
|
for x in range(10):
|
||
|
continue
|
||
|
assert False
|
||
|
else:
|
||
|
assert True
|
||
|
|
||
|
for x in range(10):
|
||
|
break
|
||
|
assert False
|
||
|
else:
|
||
|
assert False
|