aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/implicit_3.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/implicit_3.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/implicit_3.f9012
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/implicit_3.f90 b/gcc/testsuite/gfortran.dg/implicit_3.f90
new file mode 100644
index 00000000000..830b8611a9f
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/implicit_3.f90
@@ -0,0 +1,12 @@
+! { dg-do compile }
+! Verify that INTERFACEs don't inherit the implicit types of the
+! surrounding namespace.
+implicit complex (i-k)
+
+interface
+ function f(k,l)
+ ! k should be default INTEGER
+ dimension l(k)
+ end function f
+end interface
+end