diff options
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() |