summaryrefslogtreecommitdiffstats
path: root/stacker/test/memory.st
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-17 02:18:44 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-17 02:18:44 +0000
commite6fd0e826b339caadbf4b2f9f6c0378e451477a5 (patch)
tree362411f13f53540ff759a14bfadc3311c1a8f71e /stacker/test/memory.st
parentb4e0f9b52e9fb7bcec58f4e9aac8cc8d65d32bdb (diff)
downloadbcm5719-llvm-e6fd0e826b339caadbf4b2f9f6c0378e451477a5.tar.gz
bcm5719-llvm-e6fd0e826b339caadbf4b2f9f6c0378e451477a5.zip
For PR1074:
Remove the projects/Stacker directory. LLVM is now free of dependency on llvm-gcc. llvm-svn: 33278
Diffstat (limited to 'stacker/test/memory.st')
-rw-r--r--stacker/test/memory.st10
1 files changed, 10 insertions, 0 deletions
diff --git a/stacker/test/memory.st b/stacker/test/memory.st
new file mode 100644
index 00000000000..8c59956a625
--- /dev/null
+++ b/stacker/test/memory.st
@@ -0,0 +1,10 @@
+#
+# MEMORY test
+#
+FORWARD success;
+FORWARD failure;
+: try_free FREE ;
+: read_space >s ;
+: write_space 0 72 PUT 1 69 PUT 2 76 PUT 3 76 PUT 4 79 PUT ;
+: try_malloc 64 MALLOC ;
+: MAIN try_malloc write_space read_space try_free " - " >s success ;
OpenPOWER on IntegriCloud