mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 09:46:36 +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
|