Adding two testcases from Gerhard Steinmetz from 2016-08-30.
These have had the dejagnu directives added. The last comment
in the PR is from Andrew Pinski notes the PR was fixed in the 9.3,
10+ timeframe. The testcases are small. Committing the tests to
ensure things are not broken in the future.
PR fortran/77415
gcc/testsuite/ChangeLog:
* gfortran.dg/pr77415_1.f90: New test.
* gfortran.dg/pr77415_2.f90: New test.
--- /dev/null
+integer function f()
+ f(g) = 0 ! { dg-error "Statement function" }
+contains
+ integer function g()
+ end
+end
--- /dev/null
+! { dg-do compile }
+function f()
+ f(g) = 0 ! { dg-error "Statement function" }
+contains
+ function g()
+ end
+end
+