Jonas Maebe %!s(int64=22) %!d(string=hai) anos
pai
achega
a1db92451c
Modificáronse 1 ficheiros con 19 adicións e 0 borrados
  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.
+