forked from M-Labs/artiq
1
0
Fork 0
artiq/lit-test/test/iodelay/error_unify.py

12 lines
335 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.signature +diag +delay %s >%t
# RUN: OutputCheck %s --file-to-check=%t
def f():
delay_mu(10)
# CHECK-L: ${LINE:+1}: fatal: delay delay(20 mu) was inferred for this function, but its delay is already constrained externally to delay(10 mu)
def g():
delay_mu(20)
x = f if True else g