From 80f0bfe0ad8bbc56d5dbc405daad1c2609873b5d Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 17 Nov 2015 01:04:20 +0300 Subject: [PATCH] lit-test: add test for iodelay order invariance. --- lit-test/test/iodelay/order_invariance.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lit-test/test/iodelay/order_invariance.py diff --git a/lit-test/test/iodelay/order_invariance.py b/lit-test/test/iodelay/order_invariance.py new file mode 100644 index 000000000..af5adf13c --- /dev/null +++ b/lit-test/test/iodelay/order_invariance.py @@ -0,0 +1,10 @@ +# RUN: %python -m artiq.compiler.testbench.signature %s >%t +# RUN: OutputCheck %s --file-to-check=%t + +# CHECK-L: g: ()->NoneType delay(s->mu(2.0) mu) +def g(): + f() + f() + +def f(): + delay(1.0)