re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
authorTobias Burnus <burnus@net-b.de>
Sat, 3 Mar 2012 14:11:24 +0000 (15:11 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 3 Mar 2012 14:11:24 +0000 (15:11 +0100)
2012-03-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48820
        * gfortran.dg/assumed_type_1.f90: Correct dg-error.
        * gfortran.dg/assumed_type_3.f90: Correct dg-error.
        * gfortran.dg/assumed_type_4.f90: Correct dg-error.

From-SVN: r184856

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_type_1.f90
gcc/testsuite/gfortran.dg/assumed_type_3.f90
gcc/testsuite/gfortran.dg/assumed_type_4.f90

index e95a0ee43d37718221233233a2c2e1c211a9a237..65e9aaee4df16676bf5f6164f091d4b3c8460542 100644 (file)
@@ -1,3 +1,10 @@
+2012-03-03  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/48820
+       * gfortran.dg/assumed_type_1.f90: Correct dg-error.
+       * gfortran.dg/assumed_type_3.f90: Correct dg-error.
+       * gfortran.dg/assumed_type_4.f90: Correct dg-error.
+
 2012-03-03  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/48820
index c49114669974574cedaaa0d85ed40032a44c9173..7ac98f82738da6ab492840c29fc07e41950e7453 100644 (file)
@@ -49,7 +49,6 @@ use mpi_interface
 contains
     subroutine foo(x)
     type(*):: x(*)
-    call MPI_Send(x, 1, 1,1,1,j,i)
     call MPI_Send2(x, 1, 1,1,1,j,i)
   end
 end
index 849769197eee09b2b8277f06a92785c533fe9c99..15619ce1b95d049347c91cfe0c491c4ec1d443fd 100644 (file)
@@ -5,6 +5,11 @@
 !
 ! Test TYPE(*)
 
+subroutine fourteen(x)
+  type(*) :: x
+  x = x ! { dg-error "Invalid expression with assumed-type variable" }
+end subroutine fourteen
+
 subroutine one(a) ! { dg-error "may not have the ALLOCATABLE, CODIMENSION, POINTER or VALUE attribute" }
   type(*), value :: a
 end subroutine one
@@ -52,10 +57,10 @@ subroutine nine()
     subroutine okay2(x)
       type(*) :: x(*)
     end subroutine okay2
-    subroutine okay2(x,y)
+    subroutine okay3(x,y)
       integer :: x
       type(*) :: y
-    end subroutine okay2
+    end subroutine okay3
   end interface
   interface two
     subroutine okok1(x)
@@ -100,10 +105,10 @@ end subroutine eleven
 
 subroutine twelf(x)
   type(*) :: x
-  call bar(x)
+  call bar(x) ! { dg-error "Type mismatch in argument" }
 contains
   subroutine bar(x)
-    integer :: x ! { dg-error "Type mismatch in argument" }
+    integer :: x
   end subroutine bar
 end subroutine twelf
 
@@ -113,7 +118,4 @@ subroutine thirteen(x, y)
   print *, ubound(y, dim=x) ! { dg-error "must be INTEGER" }
 end subroutine thirteen
 
-subroutine fourteen(x)
-  type(*) :: x
-  x = x ! { dg-error "Invalid expression with assumed-type variable" }
-end subroutine fourteen
+
index 0b8faa84587a4cd21010e16d47255573a4564b7f..1ea982e9add560443878261d59f4f987445d0e3a 100644 (file)
@@ -5,6 +5,6 @@
 !
 ! Test TYPE(*)
 
-subroutine one(a) ! { dg-error "TS 29113: Assumed type" }
-  type(*)  :: a
+subroutine one(a)
+  type(*)  :: a ! { dg-error "TS 29113: Assumed type" }
 end subroutine one