summaryrefslogtreecommitdiffstats
path: root/stacker/test/dup.st
diff options
context:
space:
mode:
Diffstat (limited to 'stacker/test/dup.st')
-rw-r--r--stacker/test/dup.st8
1 files changed, 8 insertions, 0 deletions
diff --git a/stacker/test/dup.st b/stacker/test/dup.st
new file mode 100644
index 00000000000..0ddaa43c45d
--- /dev/null
+++ b/stacker/test/dup.st
@@ -0,0 +1,8 @@
+#
+# DUP test
+#
+FORWARD success;
+FORWARD failure;
+: phase3 1 = IF success ELSE failure ENDIF ;
+: phase2 2 = IF phase3 ELSE failure ENDIF ;
+: MAIN 1 2 DUP 2 = IF phase2 ELSE failure ENDIF ;
OpenPOWER on IntegriCloud