mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 14:27:11 +01:00
* give a compile-time error in ISO/Extended Pascal if the compiler can prove
the case selector value is not handled, and a warning in other modes
(mantis #35915)
o trigger the case node simplification at the end of the case node typecheck
pass, like for other nodes
git-svn-id: trunk@42574 -
14 lines
149 B
ObjectPascal
14 lines
149 B
ObjectPascal
{ %opt=-Sew }
|
|
{ %norun }
|
|
|
|
const
|
|
OT_SIZE_MASK = $3000001F;
|
|
var
|
|
l: longint;
|
|
begin
|
|
l:=1;
|
|
case l and OT_SIZE_MASK of
|
|
1: writeln;
|
|
end;
|
|
end.
|