From e53f26dba0024f8c407a8ca11a3c71cf88e1dac0 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 24 Nov 2015 00:21:53 +0800 Subject: [PATCH] lit-test: add interleaving/pure_impure_tie. --- lit-test/test/interleaving/pure_impure_tie.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lit-test/test/interleaving/pure_impure_tie.py diff --git a/lit-test/test/interleaving/pure_impure_tie.py b/lit-test/test/interleaving/pure_impure_tie.py new file mode 100644 index 000000000..f2eab0502 --- /dev/null +++ b/lit-test/test/interleaving/pure_impure_tie.py @@ -0,0 +1,14 @@ +# RUN: %python -m artiq.compiler.testbench.jit %s >%t +# RUN: OutputCheck %s --file-to-check=%t + +def f(): + delay_mu(2) + +def g(): + with parallel: + f() + delay_mu(2) + print(now_mu()) + +# CHECK-L: 2 +g()