URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [elemental_dependency_2.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR fortran/38487! Spurious warning on pointers as elemental subroutine actual arguments!! Contributed by Harald Anlauf <anlauf@gmx.de>module gfcbug82implicit nonetype treal, pointer :: q(:) =>NULL()real, pointer :: r(:) =>NULL()end type ttype (t), save :: x, yreal, dimension(:), pointer, save :: a => NULL(), b => NULL()real, save :: c(5), dcontainselemental subroutine add (q, r)real, intent (inout) :: qreal, intent (in) :: rq = q + rend subroutine addsubroutine foo ()call add (y% q, x% r)call add (y% q, b )call add (a , x% r)call add (a , b )call add (y% q, d )call add (a , d )call add (c , x% r)call add (c , b )end subroutine fooend module gfcbug82! { dg-final { cleanup-modules "gfcbug82" } }
