10 REM PC-BASIC test 
20 REM CLEAR syntax
30 ON ERROR GOTO 1000
40 CLEAR -1
45 CLEAR 32768
50 CLEAR 0, 0
60 CLEAR 0, 65534, 0
70 CLEAR , -1
80 CLEAR , 65535
90 CLEAR ,
100 CLEAR ,,
110 CLEAR ,,,
120 CLEAR ,,,32768 ' not an error on PCJR/Tandy
130 CLEAR , 65534, 512 
999 END
1000 OPEN "ERRORS.TXT" FOR APPEND AS 1
1010 PRINT#1, ERR, ERL
1020 CLOSE
1030 RESUME NEXT
