summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/implicit_1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/implicit_1.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/implicit_1.f9012
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/implicit_1.f90 b/gcc/testsuite/gfortran.dg/implicit_1.f90
new file mode 100644
index 000000000..85398ca20
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/implicit_1.f90
@@ -0,0 +1,12 @@
+! { dg-do compile }
+! PR 13575 -- we used to not see that c0 has no type, and then ICE later
+module AHFinder_dat
+implicit none
+save c0 ! { dg-error "no IMPLICIT type" "no IMPLICIT type" }
+end module AHFinder_dat
+! PR 15978 -- we used to not see that aaa has no type, and then ICE later
+implicit none
+common/rommel/aaa ! { dg-error "no IMPLICIT type" "no IMPLICIT type" }
+end
+
+! { dg-final { cleanup-modules "AHFinder_dat" } }