--- /dev/null
+// expected output
+#expect 0
+
+#ship debug : Debug
+#ship fifo : Fifo
+#ship fifo2 : Fifo
+
+debug.in:
+ [*] take, deliver;
+
+fifo2.out:
+ literal 2;
+ load repeat counter with 1;
+ wait;
+ setflags a=c, b=b;
+ [a] literal 1;
+ [!a] literal 0;
+ sendto debug.in;
+
+fifo.out:
+ notify fifo2.out:0;