Kaynağa Gözat

Add test for issue #40894, which is fixed in main branch

Pierre Muller 4 hafta önce
ebeveyn
işleme
73a87132f8
1 değiştirilmiş dosya ile 15 ekleme ve 0 silme
  1. 15 0
      tests/webtbs/tw40894.pp

+ 15 - 0
tests/webtbs/tw40894.pp

@@ -0,0 +1,15 @@
+program test;
+{$ZEROBASEDSTRINGS ON}
+{$H+} // make sure it is AnsiString, not ShortString
+{$R+}
+
+Var
+  I: Integer;
+  S: String;
+Begin
+  S := 'abc';
+  WriteLn(Length(S));
+  For I := High(S) Downto Low(S) Do
+    WriteLn(I, ' ---> ', S[I]);
+End.
+