]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-12-26 Steven G. Kargl <kargl@gcc.gnu.org>
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Dec 2018 21:08:53 +0000 (21:08 +0000)
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Dec 2018 21:08:53 +0000 (21:08 +0000)
        PR fortran/85357
        * gfortran.df/pr85357.f90: New test.

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

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

index 138866b98e3f72417a7e29ef65c58f2e19d2ca4f..4b39847d9d8a4937ae01722160b05387833e1d93 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-26  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       PR fortran/85357
+       * gfortran.df/pr85357.f90: New test.
+
 2018-12-24  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/45513
diff --git a/gcc/testsuite/gfortran.dg/pr85357.f90 b/gcc/testsuite/gfortran.dg/pr85357.f90
new file mode 100644 (file)
index 0000000..22f2d3d
--- /dev/null
@@ -0,0 +1,17 @@
+! { dg-do compile }
+module base
+   implicit none
+contains
+   subroutine summation(i)
+      integer, intent(in) :: i
+   end subroutine
+end module
+
+module extended
+   use base
+   implicit none
+contains
+   subroutine summation()  ! { dg-error "is already defined" }
+   end subroutine          ! { dg-error "Expecting END MODULE statement" }
+end module
+! { dg-prune-output "is already defined at" }