Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/associated_1.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! PR 25292: Check that the intrinsic associated works with functions returning ! pointers as arguments program test real, pointer :: a, b nullify(a,b) if(associated(a,b).or.associated(a,a)) STOP 1 allocate(a) if(associated(b,a)) STOP 2 if (.not.associated(x(a))) STOP 3 if (.not.associated(a, x(a))) STOP 4 nullify(b) if (associated(x(b))) STOP 5 allocate(b) if (associated(x(b), x(a))) STOP 6 contains function x(a) RESULT(b) real, pointer :: a,b b => a end function x end program test