mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-29 18:24:20 +02: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 -
9 lines
80 B
ObjectPascal
9 lines
80 B
ObjectPascal
{ %fail }
|
|
{$mode extendedpascal}
|
|
|
|
begin
|
|
case 1 of
|
|
2: writeln;
|
|
end;
|
|
end.
|