mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 15:59:30 +02:00
+ Added bug #165
This commit is contained in:
parent
87d95bb17c
commit
d2204ea2ae
13
bugs/bug0165.pp
Normal file
13
bugs/bug0165.pp
Normal file
@ -0,0 +1,13 @@
|
||||
Program bug0165;
|
||||
|
||||
{ No range check when -Cr given}
|
||||
|
||||
Type Directions = (North, East,South,West);
|
||||
|
||||
Var Go : Directions;
|
||||
|
||||
begin
|
||||
Go:=North;
|
||||
Go:=Pred(Go); { must give run-time error }
|
||||
Go:=Pred(North); { must give compile time error }
|
||||
end.
|
@ -219,3 +219,4 @@ bug0161.pp internal error when trying to create a set with another set as
|
||||
its element (instead of a syntax error)
|
||||
bug0162.pp continue in repeat ... until loop doesn't work correct
|
||||
bug0163.pp missing <= and >= operators for sets.
|
||||
bug0165.pp missing range check code for enumerated types.
|
||||
|
Loading…
Reference in New Issue
Block a user