mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-21 17:34:03 +08:00
12 lines
335 B
Python
12 lines
335 B
Python
# 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
|