Browse Source

*** empty log message ***

florian 20 years ago
parent
commit
a3559cc712
1 changed files with 20 additions and 0 deletions
  1. 20 0
      tests/webtbs/tw3418.pp

+ 20 - 0
tests/webtbs/tw3418.pp

@@ -0,0 +1,20 @@
+{ Source provided for Free Pascal Bug Report 3418 }
+{ Submitted by "raum" on  2004-11-30 }
+{ e-mail: [email protected] }
+
+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.