summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw3418.pp
blob: 91c9b14e5d5caabe59b05d609f393ac73a6a2d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.