summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker/test/nip2.st
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/projects/Stacker/test/nip2.st')
-rw-r--r--llvm/projects/Stacker/test/nip2.st9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/projects/Stacker/test/nip2.st b/llvm/projects/Stacker/test/nip2.st
new file mode 100644
index 00000000000..a171028a805
--- /dev/null
+++ b/llvm/projects/Stacker/test/nip2.st
@@ -0,0 +1,9 @@
+#
+# NIP2 test
+#
+FORWARD success;
+FORWARD failure;
+: test_0 0 = IF success ELSE failure ENDIF ;
+: test_3 3 = IF test_0 ELSE failure ENDIF ;
+: test_4 4 = IF test_3 ELSE failure ENDIF ;
+: MAIN 0 1 2 3 4 NIP2 test_4 ;
OpenPOWER on IntegriCloud