Commit 905f067c by Tobias Burnus Committed by Tobias Burnus

re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)

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
parent da848353
2012-03-03 Tobias Burnus <burnus@net-b.de> 2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820 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
* gfortran.dg/assumed_type_1.f90: New. * gfortran.dg/assumed_type_1.f90: New.
* gfortran.dg/assumed_type_2.f90: New. * gfortran.dg/assumed_type_2.f90: New.
* gfortran.dg/assumed_type_3.f90: New. * gfortran.dg/assumed_type_3.f90: New.
......
...@@ -49,7 +49,6 @@ use mpi_interface ...@@ -49,7 +49,6 @@ use mpi_interface
contains contains
subroutine foo(x) subroutine foo(x)
type(*):: x(*) type(*):: x(*)
call MPI_Send(x, 1, 1,1,1,j,i)
call MPI_Send2(x, 1, 1,1,1,j,i) call MPI_Send2(x, 1, 1,1,1,j,i)
end end
end end
......
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
! !
! Test TYPE(*) ! 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" } subroutine one(a) ! { dg-error "may not have the ALLOCATABLE, CODIMENSION, POINTER or VALUE attribute" }
type(*), value :: a type(*), value :: a
end subroutine one end subroutine one
...@@ -52,10 +57,10 @@ subroutine nine() ...@@ -52,10 +57,10 @@ subroutine nine()
subroutine okay2(x) subroutine okay2(x)
type(*) :: x(*) type(*) :: x(*)
end subroutine okay2 end subroutine okay2
subroutine okay2(x,y) subroutine okay3(x,y)
integer :: x integer :: x
type(*) :: y type(*) :: y
end subroutine okay2 end subroutine okay3
end interface end interface
interface two interface two
subroutine okok1(x) subroutine okok1(x)
...@@ -100,10 +105,10 @@ end subroutine eleven ...@@ -100,10 +105,10 @@ end subroutine eleven
subroutine twelf(x) subroutine twelf(x)
type(*) :: x type(*) :: x
call bar(x) call bar(x) ! { dg-error "Type mismatch in argument" }
contains contains
subroutine bar(x) subroutine bar(x)
integer :: x ! { dg-error "Type mismatch in argument" } integer :: x
end subroutine bar end subroutine bar
end subroutine twelf end subroutine twelf
...@@ -113,7 +118,4 @@ subroutine thirteen(x, y) ...@@ -113,7 +118,4 @@ subroutine thirteen(x, y)
print *, ubound(y, dim=x) ! { dg-error "must be INTEGER" } print *, ubound(y, dim=x) ! { dg-error "must be INTEGER" }
end subroutine thirteen end subroutine thirteen
subroutine fourteen(x)
type(*) :: x
x = x ! { dg-error "Invalid expression with assumed-type variable" }
end subroutine fourteen
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
! !
! Test TYPE(*) ! Test TYPE(*)
subroutine one(a) ! { dg-error "TS 29113: Assumed type" } subroutine one(a)
type(*) :: a type(*) :: a ! { dg-error "TS 29113: Assumed type" }
end subroutine one end subroutine one
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment