瀏覽代碼

+ test for last commit

git-svn-id: trunk@26693 -
florian 11 年之前
父節點
當前提交
c41d043ac8
共有 2 個文件被更改,包括 19 次插入0 次删除
  1. 1 0
      .gitattributes
  2. 18 0
      tests/webtbs/tw25685.pp

+ 1 - 0
.gitattributes

@@ -13802,6 +13802,7 @@ tests/webtbs/tw2540.pp svneol=native#text/plain
 tests/webtbs/tw25551.pp svneol=native#text/plain
 tests/webtbs/tw25598.pp svneol=native#text/plain
 tests/webtbs/tw2561.pp svneol=native#text/plain
+tests/webtbs/tw25685.pp svneol=native#text/pascal
 tests/webtbs/tw2588.pp svneol=native#text/plain
 tests/webtbs/tw2589.pp svneol=native#text/plain
 tests/webtbs/tw2594.pp svneol=native#text/plain

+ 18 - 0
tests/webtbs/tw25685.pp

@@ -0,0 +1,18 @@
+{ %OPT=-O2 }
+program Project1;
+
+procedure Foo(StartPos, EndPos: Cardinal);
+var
+  s:string;
+begin
+  if (Cardinal((@s[1])^) >= StartPos) and (Cardinal((@s[1])^) <= EndPos) then
+    writeln;
+end;
+
+var
+  S: string;
+
+begin
+  foo(1,2);
+  writeln(PByte(@S[1])^ = PByte(@S[1])^ );
+end.