From 6f4252afeac7e11092601738b8f60e037245010b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 15 Jun 2008 17:53:12 -0700 Subject: [PATCH] utf.asm: add some error cases Add some error cases for testing --- test/utf.asm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/utf.asm b/test/utf.asm index 3dc84109..1c8a8f09 100644 --- a/test/utf.asm +++ b/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