diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
commit | 88a3ea34080ad3087a8191fbf479543153175d59 (patch) | |
tree | 34eaec34d3588e09f9a77abba776266f124dc823 /gcc/testsuite/gfortran.dg/pointer_intent_1.f90 | |
parent | 25e15aaed275cdfef34b3ee6eb3cb4b43a48d44f (diff) | |
parent | e65055a558093bd4fc0b1b0024b7814cc187b8e8 (diff) | |
download | gccgo.tar.gz |
Merge from trunk revision 257954.gccgo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gccgo@257955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pointer_intent_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pointer_intent_1.f90 | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/testsuite/gfortran.dg/pointer_intent_1.f90 b/gcc/testsuite/gfortran.dg/pointer_intent_1.f90 index 1bdab241c18..6585107436b 100644 --- a/gcc/testsuite/gfortran.dg/pointer_intent_1.f90 +++ b/gcc/testsuite/gfortran.dg/pointer_intent_1.f90 @@ -1,5 +1,5 @@ ! { dg-do run } -! { dg-options "-std=f2003 -fall-intrinsics" } +! { dg-options "-std=f2003 " } ! Pointer intent test ! PR fortran/29624 ! @@ -25,21 +25,21 @@ program test allocate(t2%point) t2%point = 42 call nonpointer(t2) - if(t2%point /= 7) call abort() + if(t2%point /= 7) STOP 1 contains subroutine a(p,t) integer, pointer,intent(in) :: p type(myT), pointer, intent(in) :: t integer, pointer :: tmp if(.not.associated(p)) return - if(p /= 33) call abort() + if(p /= 33) STOP 2 p = 7 if (associated(t)) then ! allocating is valid as we don't change the status ! of the pointer "t", only of it's target t%x = -15 - if(.not.associated(t%point)) call abort() - if(t%point /= 55) call abort() + if(.not.associated(t%point)) STOP 3 + if(t%point /= 55) STOP 4 nullify(t%point) allocate(tmp) t%point => tmp @@ -48,14 +48,14 @@ contains tmp => null(tmp) allocate(t%point) t%point = 27 - if(t%point /= 27) call abort() - if(t%x /= -15) call abort() + if(t%point /= 27) STOP 5 + if(t%x /= -15) STOP 6 call foo(t) - if(t%x /= 32) call abort() - if(t%point /= -98) call abort() + if(t%x /= 32) STOP 7 + if(t%point /= -98) STOP 8 end if call b(p) - if(p /= 5) call abort() + if(p /= 5) STOP 9 end subroutine subroutine b(v) integer, intent(out) :: v @@ -63,15 +63,15 @@ contains end subroutine b subroutine foo(comp) type(myT), intent(inout) :: comp - if(comp%x /= -15) call abort() - if(comp%point /= 27) call abort() + if(comp%x /= -15) STOP 10 + if(comp%point /= 27) STOP 11 comp%x = 32 comp%point = -98 end subroutine foo subroutine nonpointer(t) type(myT), intent(in) :: t - if(t%x /= 5 ) call abort() - if(t%point /= 42) call abort() + if(t%x /= 5 ) STOP 12 + if(t%point /= 42) STOP 13 t%point = 7 end subroutine nonpointer end program |