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(30 mu)
|
2015-09-03 07:46:09 +08:00
|
|
|
def f():
|
|
|
|
for _ in range(10):
|
2015-11-24 00:20:00 +08:00
|
|
|
delay_mu(3)
|
2015-09-03 07:46:09 +08:00
|
|
|
|
2015-11-24 00:20:00 +08:00
|
|
|
# CHECK-L: g: ()->NoneType delay(60 mu)
|
2015-09-03 07:46:09 +08:00
|
|
|
def g():
|
|
|
|
for _ in range(10):
|
|
|
|
for _ in range(2):
|
2015-11-24 00:20:00 +08:00
|
|
|
delay_mu(3)
|