fpc/tests/test/tcasecov6.pp
Jonas Maebe 46afcbb362 * an incomplete case statement is not an error in ISO Pascal (mantis #35910)
* 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 -
2019-08-03 13:47:27 +00:00

13 lines
105 B
ObjectPascal

{ %fail }
{ %opt=-Sew }
{ %norun }
var
l: 0..3;
begin
l:=1;
case l of
2: writeln;
end;
end.