2015-07-22 23:34:52 +08:00
|
|
|
# RUN: %python -m artiq.compiler.testbench.jit %s
|
2015-07-23 13:09:25 +08:00
|
|
|
# RUN: %python %s
|
2015-07-22 23:34:52 +08:00
|
|
|
|
|
|
|
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
|