summaryrefslogtreecommitdiffstats
path: root/stacker/test/memory.st
diff options
context:
space:
mode:
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