llvm-6502/projects/Stacker/test/memory.st
Chris Lattner e44f1db6e6 Checkin tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10187 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-23 18:12:22 +00:00

11 lines
243 B
Smalltalk

#
# 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 ;