2015-09-03 07:46:09 +08:00
|
|
|
# RUN: %python -m artiq.compiler.testbench.signature %s >%t
|
|
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
|
2015-11-24 00:20:00 +08:00
|
|
|
# CHECK-L: f: ()->NoneType delay(1001000 mu)
|
2015-09-03 07:46:09 +08:00
|
|
|
def f():
|
|
|
|
delay(1.0)
|
|
|
|
delay_mu(1000)
|
|
|
|
|
2015-11-24 00:20:00 +08:00
|
|
|
# CHECK-L: g: ()->NoneType delay(3 mu)
|
2015-09-03 07:46:09 +08:00
|
|
|
def g():
|
2015-11-24 00:20:00 +08:00
|
|
|
delay_mu(1)
|
|
|
|
delay_mu(2)
|