mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
15 lines
445 B
Python
15 lines
445 B
Python
# RUN: %python -m artiq.compiler.testbench.signature +diag +delay %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
def f():
|
|
for _ in range(10):
|
|
delay_mu(10)
|
|
# CHECK-L: ${LINE:+1}: error: loop trip count is indeterminate because of control flow
|
|
break
|
|
|
|
def g():
|
|
for _ in range(10):
|
|
delay_mu(10)
|
|
# CHECK-L: ${LINE:+1}: error: loop trip count is indeterminate because of control flow
|
|
continue
|