Jonas Maebe 22 years ago
parent
commit
a1db92451c
1 changed files with 19 additions and 0 deletions
  1. 19 0
      tests/webtbs/tw2540.pp

+ 19 - 0
tests/webtbs/tw2540.pp

@@ -0,0 +1,19 @@
+var
+  C : Char;
+  S : AnsiString;
+begin
+  S := '';
+  SetLength(S,1);
+  S[1] := '?';
+  SetLength(S,2);
+  S[2] := '?';
+  if (s <> '??') then
+    halt(1);
+
+  S := '';
+  S := S + '?';
+  S := S + '?';
+  if (s <> '??') then
+    halt(1);
+end.
+