mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
14 lines
320 B
Python
14 lines
320 B
Python
# RUN: %python -m artiq.compiler.testbench.signature %s >%t
|
|
# RUN: OutputCheck %s --file-to-check=%t
|
|
|
|
# CHECK-L: f: ()->NoneType delay(30 mu)
|
|
def f():
|
|
for _ in range(10):
|
|
delay_mu(3)
|
|
|
|
# CHECK-L: g: ()->NoneType delay(60 mu)
|
|
def g():
|
|
for _ in range(10):
|
|
for _ in range(2):
|
|
delay_mu(3)
|