0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00
nasm/travis/test/utf-error.stderr
H. Peter Anvin 73676357de BR 3392906: error out on bad syntax "db 1 2"
NASM would try to "eat the comma token" in db expressions, even for
cases where the token was not a comma. Fix that and error out
properly.

To give better error messages, track where in the input string a token
starts or ends. This information is only valid as long as the input
string is kept, but that is just fine for error messages during
parsing.

Reported-by: Peter Cordes <pcordes@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2023-10-11 12:06:58 -07:00

16 lines
1.2 KiB
Plaintext

./travis/test/utf.asm:63: error: __?utf16?__ must be followed by a string constant, got `33'
./travis/test/utf.asm:64: error: __?utf16?__ must be followed by a string constant, got `,'
./travis/test/utf.asm:65: error: unterminated __?utf16?__ function
./travis/test/utf.asm:66: error: unterminated __?utf16?__ function
./travis/test/utf.asm:67: error: invalid input string to __?utf16?__
./travis/test/utf.asm:69: error: __?utf16le?__ must be followed by a string constant, got `33'
./travis/test/utf.asm:70: error: __?utf16le?__ must be followed by a string constant, got `,'
./travis/test/utf.asm:71: error: unterminated __?utf16le?__ function
./travis/test/utf.asm:72: error: unterminated __?utf16le?__ function
./travis/test/utf.asm:73: error: invalid input string to __?utf16le?__
./travis/test/utf.asm:75: error: __?utf16be?__ must be followed by a string constant, got `33'
./travis/test/utf.asm:76: error: __?utf16be?__ must be followed by a string constant, got `,'
./travis/test/utf.asm:77: error: unterminated __?utf16be?__ function
./travis/test/utf.asm:78: error: unterminated __?utf16be?__ function
./travis/test/utf.asm:79: error: invalid input string to __?utf16be?__