mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-21 17:34:03 +08:00
14 lines
291 B
Python
14 lines
291 B
Python
# RUN: %python -m artiq.compiler.testbench.signature +diag +delay %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
def pulse(len):
|
|
# "on"
|
|
delay_mu(len)
|
|
# "off"
|
|
delay_mu(len)
|
|
|
|
def f():
|
|
a = 100
|
|
# CHECK-L: ${LINE:+1}: error: this call cannot be interleaved
|
|
pulse(a)
|