summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pointer_array_component_1.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/pointer_array_component_1.f908
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90 b/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
index b96071b178a..cac1512954e 100644
--- a/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
+++ b/gcc/testsuite/gfortran.dg/pointer_array_component_1.f90
@@ -21,10 +21,10 @@
x = [real_vars (11.0, 1.0), real_vars (42.0, 2.0)]
vtab_r%rvar => x%r
- if (any (abs (vtab_r%rvar - [11.0, 42.0]) > 1.0e-5)) call abort ! Check skipping 'index; is OK.
+ if (any (abs (vtab_r%rvar - [11.0, 42.0]) > 1.0e-5)) STOP 1! Check skipping 'index; is OK.
y = vtab_r%rvar
- if (any (abs (y - [11.0, 42.0]) > 1.0e-5)) call abort ! Check that the component is usable in assignment.
+ if (any (abs (y - [11.0, 42.0]) > 1.0e-5)) STOP 2! Check that the component is usable in assignment.
call foobar (vtab_r, [11.0, 42.0])
@@ -36,8 +36,8 @@ contains
subroutine foobar (vtab, array)
type(var_tables) :: vtab
real :: array (:)
- if (any (abs (vtab%rvar - array) > 1.0e-5)) call abort ! Check passing as a dummy.
- if (abs (vtab%rvar(2) - array(2)) > 1.0e-5) call abort ! Check component reference.
+ if (any (abs (vtab%rvar - array) > 1.0e-5)) STOP 3! Check passing as a dummy.
+ if (abs (vtab%rvar(2) - array(2)) > 1.0e-5) STOP 4! Check component reference.
end subroutine
function barfoo () result(res)