summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker/test/nip2.st
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-23 18:12:22 +0000
committerChris Lattner <sabre@nondot.org>2003-11-23 18:12:22 +0000
commit6484bf74239eb232d6fd422c8618fba7d5947028 (patch)
tree24c49ec9515d6e2d5613139bbdc886ec8a8bac8b /llvm/projects/Stacker/test/nip2.st
parent75759839b26540b76c0c97489eb37d08f4bebfbd (diff)
downloadbcm5719-llvm-6484bf74239eb232d6fd422c8618fba7d5947028.tar.gz
bcm5719-llvm-6484bf74239eb232d6fd422c8618fba7d5947028.zip
Checkin tests
llvm-svn: 10187
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