fpc/tests/tbf/tb0201.pp
Jonas Maebe eddc507a13 * disallow widechar sets (Delphi 7 compatible, and were handled wrongly
by FPC previously)
  * tbs/tb0474 now fails -> renamed to tbf/tb0201 (+ new test tbf/tb0202)

git-svn-id: trunk@8284 -
2007-08-14 14:27:59 +00:00

36 lines
597 B
ObjectPascal

{ %fail }
{$mode delphi}
const
WideNull = widechar(#0);
WideSpace = widechar(#32);
var
w : widechar;
w2,w3 : widechar;
begin
w:=WideSpace;
w3:=WideSpace;
w2:=WideNull;
if not(w in [WideSpace]) then
begin
writeln('error 1');
halt(1);
end;
if not(w in [WideNull..WideSpace]) then
begin
writeln('error 2');
halt(1);
end;
if not(w in [WideNull..WideSpace,w3]) then
begin
writeln('error 3');
halt(1);
end;
if not(w in [WideNull..WideSpace,w2..w3]) then
begin
writeln('error 4');
halt(1);
end;
end.