]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add file forgotten in commit Rev. 162500
authorTobias Burnus <burnus@gcc.gnu.org>
Mon, 26 Jul 2010 09:53:19 +0000 (11:53 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 26 Jul 2010 09:53:19 +0000 (11:53 +0200)
2010-07-24  Tobias Burnus  <burnus@net-b.de>

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

From-SVN: r162531

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" } }