diff gcc/testsuite/gfortran.dg/assumed_rank_7.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line diff
--- a/gcc/testsuite/gfortran.dg/assumed_rank_7.f90	Fri Oct 27 22:46:09 2017 +0900
+++ b/gcc/testsuite/gfortran.dg/assumed_rank_7.f90	Thu Oct 25 07:37:49 2018 +0900
@@ -22,43 +22,43 @@
 call foo(at)
 call bar(ac)
 call bar(at)
-if (i /= 12) call abort()
+if (i /= 12) STOP 1
 
 contains
   subroutine bar(x)
     type(t) :: x(..)
-    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) call abort()
-    if (size(x) /= 6) call abort()
-    if (size(x,1) /= 2 .or. size(x,2) /= 3) call abort()
-    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) call abort()
+    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) STOP 2
+    if (size(x) /= 6) STOP 3
+    if (size(x,1) /= 2 .or. size(x,2) /= 3) STOP 4
+    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) STOP 5
     i = i + 1
     call foo(x)
     call bar2(x)
   end subroutine
   subroutine bar2(x)
     type(t) :: x(..)
-    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) call abort()
-    if (size(x) /= 6) call abort()
-    if (size(x,1) /= 2 .or. size(x,2) /= 3) call abort()
-    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) call abort()
+    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) STOP 6
+    if (size(x) /= 6) STOP 7
+    if (size(x,1) /= 2 .or. size(x,2) /= 3) STOP 8
+    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) STOP 9
     i = i + 1
   end subroutine
   subroutine foo(x)
     class(t) :: x(..)
-    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) call abort()
-    if (size(x) /= 6) call abort()
-    if (size(x,1) /= 2 .or. size(x,2) /= 3) call abort()
-    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) call abort()
+    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) STOP 10
+    if (size(x) /= 6) STOP 11
+    if (size(x,1) /= 2 .or. size(x,2) /= 3) STOP 12
+    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) STOP 13
     i = i + 1
     call foo2(x)
 !    call bar2(x) ! Passing a CLASS to a TYPE does not yet work
   end subroutine
   subroutine foo2(x)
     class(t) :: x(..)
-    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) call abort()
-    if (size(x) /= 6) call abort()
-    if (size(x,1) /= 2 .or. size(x,2) /= 3) call abort()
-    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) call abort()
+    if (lbound(x,1) /= 1 .or. lbound(x,2) /= 1) STOP 14
+    if (size(x) /= 6) STOP 15
+    if (size(x,1) /= 2 .or. size(x,2) /= 3) STOP 16
+    if (ubound(x,1) /= 2 .or. ubound(x,2) /= 3) STOP 17
     i = i + 1
   end subroutine
 end