aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/implicit_pure_2.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/implicit_pure_2.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/implicit_pure_2.f9016
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/implicit_pure_2.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/implicit_pure_2.f90
new file mode 100644
index 000000000..16fa64f39
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/implicit_pure_2.f90
@@ -0,0 +1,16 @@
+! { dg-do compile }
+! PR 51502 - this was wrongly detected to be implicit pure.
+module m
+ integer :: i
+contains
+ subroutine foo(x)
+ integer, intent(inout) :: x
+ outer: block
+ block
+ i = 5
+ end block
+ end block outer
+ end subroutine foo
+end module m
+
+! { dg-final { scan-module-absence "m" "IMPLICIT_PURE" } }