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/assignment_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/assignment_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/assignment_1.f90 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gfortran.dg/assignment_1.f90 b/gcc/testsuite/gfortran.dg/assignment_1.f90 index 4022b0db989..067b701ce4e 100644 --- a/gcc/testsuite/gfortran.dg/assignment_1.f90 +++ b/gcc/testsuite/gfortran.dg/assignment_1.f90 @@ -14,15 +14,15 @@ p => s ! We didn't dereference the pointer in the following line. p = f() ! { dg-warning "POINTER-valued function" } p = p+1 -if (p.ne.2) call abort() -if (p.ne.s) call abort() +if (p.ne.2) STOP 1 +if (p.ne.s) STOP 2 !!$! verify that we also dereference correctly the result of a function !!$! which returns its result by reference !!$c = "Hallo" !!$d => e !!$d = g() ! dg-warning "POINTER valued function" "" -!!$if (d.ne."Hallo") call abort() +!!$if (d.ne."Hallo") STOP 3 contains function f() |