mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
utf.asm: add some error cases
Add some error cases for testing
This commit is contained in:
parent
d710e2be26
commit
6f4252afea
10
test/utf.asm
10
test/utf.asm
@ -8,6 +8,8 @@
|
||||
db `\u306a`
|
||||
db `\xe3\x81\xaa`
|
||||
|
||||
dw __utf16__ "Hello, World!"
|
||||
|
||||
nop
|
||||
|
||||
mov ax,u(`a`)
|
||||
@ -16,3 +18,11 @@
|
||||
mov eax,u(`ab`)
|
||||
mov ebx,u(`\U0001abcd`)
|
||||
mov ecx,w(`\U0001abcd`)
|
||||
|
||||
%ifdef ERROR
|
||||
dw __utf16__ 33
|
||||
dw __utf16__, 46
|
||||
dw __utf16__("Hello, World!",16)
|
||||
dw __utf16__("Hello, World!",16
|
||||
dw u(`\xff`)
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user