summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/whole_file_25.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/whole_file_25.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/whole_file_25.f9021
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/whole_file_25.f90 b/gcc/testsuite/gfortran.dg/whole_file_25.f90
new file mode 100644
index 000000000..d2cbd36ae
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/whole_file_25.f90
@@ -0,0 +1,21 @@
+! { dg-do compile }
+! { dg-options "-fwhole-program" }
+!
+! PR fortran/45087
+!
+
+module ints
+ INTERFACE
+ SUBROUTINE NOZZLE()
+ END SUBROUTINE NOZZLE
+ END INTERFACE
+end module ints
+
+ SUBROUTINE NOZZLE()
+ END SUBROUTINE NOZZLE
+ program CORTESA
+ USE INTS
+ CALL NOZZLE ()
+ END program CORTESA
+
+! { dg-final { cleanup-modules "ints" } }