mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 07:50:47 +01:00
(based on patch by Martok)
o enabled by default in ISO and Extended Pascal: compile-time error if not
the case in ISO mode, warning and run-time error in Extended Pascal mode
o warning enabled by default in all other modes for boolean, enumeration and
subrange integer types with ranges different from the default ones
(i.e., different from 0..255, -128..127, 0..65536, etc)
o warnings for all ordinal types can be enabled in all modes with
-CC
git-svn-id: trunk@42047 -
13 lines
120 B
ObjectPascal
13 lines
120 B
ObjectPascal
{ %fail }
|
|
{ %opt=-Sew }
|
|
{$mode extendedpascal}
|
|
|
|
var
|
|
l: longint;
|
|
begin
|
|
l:=1;
|
|
case l of
|
|
2: writeln;
|
|
end;
|
|
end.
|