Test a few error message with .IIF.

This commit is contained in:
Olaf Seibert 2018-11-10 17:11:45 +01:00
parent 2dbf80388e
commit 2920e9f2f9
2 changed files with 26 additions and 1 deletions

View File

@ -132,7 +132,23 @@
132 .iftf
133 000044 001 .byte 1
134 .endc
134
135
136 ; errors
test-if.mac:137: ***ERROR Missing .(I)IF condition
137 .iif
test-if.mac:138: ***ERROR Missing .(I)IF condition
138 .iif 0
test-if.mac:139: ***ERROR Missing .(I)IF condition
139 .iif 1
test-if.mac:140: ***ERROR Bad .IF expression
140 000000 .iif undefd
test-if.mac:141: ***ERROR Bad .IF expression
141 000000 .iif zero
test-if.mac:142: ***ERROR Bad .IF expression
142 000000 .iif one
test-if.mac:143: ***ERROR Bad .IF expression
143 000000 .iif z
143
Symbol table

View File

@ -132,3 +132,12 @@ min1 = -1
.iftf
.byte 1
.endc
; errors
.iif
.iif 0
.iif 1
.iif undefd
.iif zero
.iif one
.iif z