llvm-6502/projects/Stacker/test/pick.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

10 lines
207 B
Smalltalk

#
# PICK test
#
# Logic: // x0 ... Xn n -- x0 ... Xn x0
#
FORWARD success;
FORWARD failure;
: next 10 = IF success ELSE failure ENDIF ;
: MAIN 0 1 2 3 4 5 6 7 8 9 10 5 PICK 5 = IF next ELSE failure ENDIF ;