Browse Source

+ added test file missing from merge in r31984

git-svn-id: branches/fixes_3_0@33915 -
Jonas Maebe 9 years ago
parent
commit
c1b7738d2b
2 changed files with 32 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 31 0
      tests/test/jvm/tnestcallpass1.pp

+ 1 - 0
.gitattributes

@@ -11311,6 +11311,7 @@ tests/test/jvm/tintstr.pp svneol=native#text/plain
 tests/test/jvm/tjavalowercaseproc.java svneol=native#text/plain
 tests/test/jvm/tjsetter.java svneol=native#text/plain
 tests/test/jvm/tlowercaseproc.pp svneol=native#text/plain
+tests/test/jvm/tnestcallpass1.pp svneol=native#text/plain
 tests/test/jvm/tnestdynarr.pp svneol=native#text/plain
 tests/test/jvm/tnestedset.pp svneol=native#text/plain
 tests/test/jvm/tnestproc.pp svneol=native#text/plain

+ 31 - 0
tests/test/jvm/tnestcallpass1.pp

@@ -0,0 +1,31 @@
+{$mode delphi}
+
+program tnestcallpass1;
+
+type
+  tncp1_c = class
+    procedure test;
+  end;
+
+
+procedure tncp1_c.test;
+
+var
+  l: longint;
+
+  function nest(const s: unicodestring): longint;
+    begin
+      l:=5;
+      if length(s)=5 then
+        nest:=l
+      else
+        nest:=3;
+    end;
+
+begin
+  nest('abcdef');
+end;
+
+
+begin
+end.