1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 07:22:55 +01:00
llvm-mirror/projects/Stacker/test/pick.st
Chris Lattner 2ca889c341 Checkin tests
llvm-svn: 10187
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 ;