mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 22:50:59 +02:00
* change to avoid range check error
This commit is contained in:
parent
1e8a7f6853
commit
bc1d0c90f8
@ -1,9 +1,14 @@
|
||||
type
|
||||
te = (enum);
|
||||
te = (enum1,enum2,enum3);
|
||||
|
||||
var
|
||||
e : te;
|
||||
e,f : te;
|
||||
|
||||
begin
|
||||
e:=enum1;
|
||||
inc(e);
|
||||
f:=enum3;
|
||||
dec(f);
|
||||
if e<>f then
|
||||
halt(1);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user