Login

Subversion Repositories NedoOS

Rev

Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# file opened: syntax_w.asm
 1    0000              ; SYNTAX option "w":
 2    0000              ;   w      Warnings options: report warnings as errors
 3    0000
 4    0000              ; verify regular syntax works as expected with default options
syntax_w.asm(5): warning: value 0x1234 is truncated to 8bit value: 0x34
 5    0000 3E 34            ld      a,0x1234            ; warning about lost bytes
 6    0002                  OPT push --syntax=w ; test the syntax option "w"
syntax_w.asm(7): error: value 0x1234 is truncated to 8bit value: 0x34
 7    0002 3E 34            ld      a,0x1234            ; error about lost bytes
syntax_w.asm(8): error: unknown warning id in -W option: unknown-id-warning-as-error
 8    0004                  OPT -Wunknown-id-warning-as-error   ; warning type W_PASS03 converted to error (test coverage++)
 9    0004                  OPT pop             ; test push+pop of new option
syntax_w.asm(10): warning: value 0x1234 is truncated to 8bit value: 0x34
10    0004 3E 34            ld      a,0x1234            ; warning about lost bytes
11    0006                  ASSERT 2 == 2 && 2 == 2
12    0006
# file closed: syntax_w.asm

Value    Label
------ - -----------------------------------------------------------