Testcase forgotten in the previous commit.
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Wed, 17 May 2006 14:14:56 +0000 (16:14 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 17 May 2006 14:14:56 +0000 (14:14 +0000)
PR fortran/26551
* gfortran.dg/recursive_check_2.f90: New test.

From-SVN: r113861

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/recursive_check_2.f90 [new file with mode: 0644]

index 3a82938..5bd9189 100644 (file)
@@ -2,6 +2,7 @@
 
        PR fortran/26551
        * gfortran.dg/recursive_check_1.f: New test.
+       * gfortran.dg/recursive_check_2.f90: New test.
 
 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
 
diff --git a/gcc/testsuite/gfortran.dg/recursive_check_2.f90 b/gcc/testsuite/gfortran.dg/recursive_check_2.f90
new file mode 100644 (file)
index 0000000..42273f9
--- /dev/null
@@ -0,0 +1,17 @@
+! { dg-do compile }
+! PR fortran/26551
+ function func2()
+   integer func2
+   func2 = 42
+   return
+ entry c() result (foo)
+   foo = barbar()
+   return
+ entry b() result (bar)
+   bar = 12
+   return
+ contains
+   function barbar ()
+     barbar = b () ! { dg-error "is not declared as RECURSIVE" }
+   end function barbar
+ end function