fpc/tests/test/twide9.pp
svenbarth f077c7d950 + add support for Unicode code point constants > $FFFF; they are converted to a surrogate pair so they are in
fact a UnicodeString constant
+ added tests

git-svn-id: trunk@39123 -
2018-05-27 14:06:19 +00:00

11 lines
172 B
ObjectPascal

{ %FAIL }
program twide9;
var
u: UnicodeChar;
begin
{ fails, because a code point > $FFFF decodes to a surrogate pair, thus a string constant }
u := #$10FFFF;
end.