mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 09:59:17 +02:00
*** empty log message ***
This commit is contained in:
parent
777bacf68c
commit
a3559cc712
20
tests/webtbs/tw3418.pp
Normal file
20
tests/webtbs/tw3418.pp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{ Source provided for Free Pascal Bug Report 3418 }
|
||||||
|
{ Submitted by "raum" on 2004-11-30 }
|
||||||
|
{ e-mail: raum@forward.to }
|
||||||
|
|
||||||
|
Program TEST;
|
||||||
|
uses Variants, sysutils;
|
||||||
|
|
||||||
|
Var
|
||||||
|
p : array[0..1] of variant;
|
||||||
|
s : string;
|
||||||
|
begin
|
||||||
|
s := '101';
|
||||||
|
writeln('doesnt crash');
|
||||||
|
p[1] := StrToInt(s);
|
||||||
|
p[0] := 'toto';
|
||||||
|
|
||||||
|
writeln('crash'); // IDE internal error
|
||||||
|
p[0] := 'toto';
|
||||||
|
p[1] := StrToInt(s);
|
||||||
|
End.
|
Loading…
Reference in New Issue
Block a user