Browse Source

Test fix Revision 29450 fro bug report 27294.

git-svn-id: trunk@29452 -
pierre 10 years ago
parent
commit
c19f3d6994
3 changed files with 56 additions and 0 deletions
  1. 2 0
      .gitattributes
  2. 26 0
      tests/webtbs/tw27294.pp
  3. 28 0
      tests/webtbs/uw27294.pp

+ 2 - 0
.gitattributes

@@ -14192,6 +14192,7 @@ tests/webtbs/tw2725.pp svneol=native#text/plain
 tests/webtbs/tw2727.pp svneol=native#text/plain
 tests/webtbs/tw2728.pp svneol=native#text/plain
 tests/webtbs/tw2729.pp svneol=native#text/plain
+tests/webtbs/tw27294.pp svneol=native#text/plain
 tests/webtbs/tw2730.pp svneol=native#text/plain
 tests/webtbs/tw2731.pp svneol=native#text/plain
 tests/webtbs/tw2736.pp svneol=native#text/plain
@@ -14935,6 +14936,7 @@ tests/webtbs/uw26922a.pp svneol=native#text/pascal
 tests/webtbs/uw26922b.pp svneol=native#text/pascal
 tests/webtbs/uw2706a.pp svneol=native#text/plain
 tests/webtbs/uw2706b.pp svneol=native#text/plain
+tests/webtbs/uw27294.pp svneol=native#text/plain
 tests/webtbs/uw2731.pp svneol=native#text/plain
 tests/webtbs/uw2738.pp svneol=native#text/plain
 tests/webtbs/uw2834.pp svneol=native#text/plain

+ 26 - 0
tests/webtbs/tw27294.pp

@@ -0,0 +1,26 @@
+uses
+  uw27294;
+
+var
+  p : procedure;
+
+procedure test;
+
+begin
+  p:=@test;
+  writeln('OK');
+end;
+
+procedure global;
+begin
+  p:=nil;
+  test;
+  p();
+end;
+
+begin
+  global;
+  uw27294.global;
+end.
+
+

+ 28 - 0
tests/webtbs/uw27294.pp

@@ -0,0 +1,28 @@
+unit
+  uw27294;
+
+interface
+
+procedure global;
+
+implementation
+
+var
+  p : procedure;
+
+procedure test;
+
+begin
+  p:=@test;
+  writeln('OK');
+end;
+
+procedure global;
+begin
+  p:=nil;
+  test;
+  p();
+end;
+
+end.
+