diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/implicit_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/implicit_3.f90 | 12 |
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 000000000..830b8611a --- /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 |