mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:29:14 +02:00
* new bug
This commit is contained in:
parent
ec04a5a899
commit
f6d3c1cf9c
24
tests/webtbf/tw3331.pp
Normal file
24
tests/webtbf/tw3331.pp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ %fail }
|
||||||
|
|
||||||
|
{ Source provided for Free Pascal Bug Report 3331 }
|
||||||
|
{ Submitted by "Ales Katona" on 2004-09-26 }
|
||||||
|
{ e-mail: ales@chello.sk }
|
||||||
|
|
||||||
|
{$mode delphi}
|
||||||
|
|
||||||
|
type TA = class
|
||||||
|
private
|
||||||
|
a: cardinal;
|
||||||
|
b: cardinal;
|
||||||
|
procedure doit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TA.doit;
|
||||||
|
begin
|
||||||
|
// This should not be allowed
|
||||||
|
for a:=0 to 2 do
|
||||||
|
b:=0;
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user