mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-03 03:00:37 +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 -
12 lines
111 B
ObjectPascal
12 lines
111 B
ObjectPascal
{ %opt=-Sew }
|
|
{ %norun }
|
|
|
|
var
|
|
s: shortstring;
|
|
begin
|
|
s:='abc';
|
|
case s[1] of
|
|
'b': writeln;
|
|
end;
|
|
end.
|