OSDN Git Service

Add file forgotten in commit Rev. 162500
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jul 2010 09:53:19 +0000 (09:53 +0000)
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jul 2010 09:53:19 +0000 (09:53 +0000)
2010-07-24  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40011
        * gfortran.dg/whole_file_21.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162531 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gfortran.dg/whole_file_21.f90 [new file with mode: 0644]

diff --git a/gcc/testsuite/gfortran.dg/whole_file_21.f90 b/gcc/testsuite/gfortran.dg/whole_file_21.f90
new file mode 100644 (file)
index 0000000..2bd979d
--- /dev/null
@@ -0,0 +1,27 @@
+! { dg-do link }
+! PR fortran/40011
+!
+! Contributed by Joost VandeVondele
+!
+!
+! Before no "one" function was generated with -fwhole-file.
+!
+!
+SUBROUTINE one ( )
+END SUBROUTINE one
+
+SUBROUTINE two ( )
+END SUBROUTINE two
+
+MODULE mod
+CONTAINS
+  SUBROUTINE three ( )
+    CALL two ( )
+  END SUBROUTINE three
+  SUBROUTINE four ( )
+      CALL one ( )
+  END SUBROUTINE four
+END MODULE mod
+END
+
+! { dg-final { cleanup-modules "m" } }