mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-03 08:41:02 +08:00
733cbb3197
Using hidden files are rather antisocial, and rather pointless in this particular context. Change .stdout and .stderr to simply stdout and stderr. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
31 lines
645 B
NASM
31 lines
645 B
NASM
;Testname=test; Arguments=-fbin -outf.bin; Files=stdout stderr utf.bin
|
|
;Testname=error; Arguments=-fbin -outf.bin -DERROR; Files=stdout stderr utf.bin
|
|
%define u(x) __utf16__(x)
|
|
%define w(x) __utf32__(x)
|
|
|
|
db `Test \u306a\U0001abcd\n`
|
|
dw u(`Test \u306a\U0001abcd\n`)
|
|
dd w(`Test \u306a\U0001abcd\n`)
|
|
|
|
db `\u306a`
|
|
db `\xe3\x81\xaa`
|
|
|
|
dw __utf16__ "Hello, World!"
|
|
|
|
nop
|
|
|
|
mov ax,u(`a`)
|
|
mov bx,u(`\u306a`)
|
|
mov cx,u(`\xe3\x81\xaa`)
|
|
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
|