Commit 12fd2ec5 by Tobias Burnus Committed by Tobias Burnus

libgomp/testsuite - use unique numbers with Fortran's 'stop'

        PR fortran/92305
        * testsuite/libgomp.fortran/allocatable2.f90: Use
        unique numbers with 'stop'.
        * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
        * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
        * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
        * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
        * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.

From-SVN: r277769
parent 2323aa04
2019-11-04 Tobias Burnus <tobias@codesourcery.com>
PR fortran/92305
* testsuite/libgomp.fortran/allocatable2.f90: Use
unique numbers with 'stop'.
* testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
* testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
* testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
* testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
* testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
2019-11-01 Tobias Burnus <tobias@codesourcery.com> 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
* testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1, * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
l = l.or..not.allocated (a) l = l.or..not.allocated (a)
l = l.or.size(a).ne.12.or.size(a,1).ne.3.or.size(a,2).ne.4 l = l.or.size(a).ne.12.or.size(a,1).ne.3.or.size(a,2).ne.4
!$omp end parallel !$omp end parallel
if (l.or.any(a.ne.6)) stop 1 if (l.or.any(a.ne.6)) stop 2
!$omp parallel num_threads (4) copyin (a) reduction(.or.:l) private (b) !$omp parallel num_threads (4) copyin (a) reduction(.or.:l) private (b)
l = l.or.allocated (b) l = l.or.allocated (b)
l = l.or..not.allocated (a) l = l.or..not.allocated (a)
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
deallocate (b) deallocate (b)
l = l.or.allocated (b) l = l.or.allocated (b)
!$omp end parallel !$omp end parallel
if (n.lt.0 .or. n.ge.4) stop 2 if (n.lt.0 .or. n.ge.4) stop 3
if (l.or.any(a.ne.(n + 36))) stop 3 if (l.or.any(a.ne.(n + 36))) stop 4
!$omp parallel num_threads (4) reduction(.or.:l) !$omp parallel num_threads (4) reduction(.or.:l)
deallocate (a) deallocate (a)
l = l.or.allocated (a) l = l.or.allocated (a)
!$omp end parallel !$omp end parallel
if (l.or.allocated (a)) stop 4 if (l.or.allocated (a)) stop 5
end end
...@@ -47,6 +47,6 @@ program main ...@@ -47,6 +47,6 @@ program main
call acc_delete (h) call acc_delete (h)
if (acc_is_present (h) .neqv. .FALSE.) stop 4 if (acc_is_present (h) .neqv. .FALSE.) stop 5
end program end program
...@@ -9,7 +9,7 @@ program test ...@@ -9,7 +9,7 @@ program test
integer, allocatable :: c3(:,:,:) integer, allocatable :: c3(:,:,:)
allocate (a1(5)) allocate (a1(5))
if (.not.allocated (a1)) STOP 1 if (.not.allocated (a1)) STOP 49
a1 = 10 a1 = 10
...@@ -30,7 +30,7 @@ program test ...@@ -30,7 +30,7 @@ program test
deallocate(a1) deallocate(a1)
allocate (a1(0:4)) allocate (a1(0:4))
if (.not.allocated (a1)) STOP 2 if (.not.allocated (a1)) STOP 50
a1 = 10 a1 = 10
...@@ -51,7 +51,7 @@ program test ...@@ -51,7 +51,7 @@ program test
deallocate(a1) deallocate(a1)
allocate (b2(5,5)) allocate (b2(5,5))
if (.not.allocated (b2)) STOP 3 if (.not.allocated (b2)) STOP 51
b2 = 11 b2 = 11
...@@ -72,7 +72,7 @@ program test ...@@ -72,7 +72,7 @@ program test
deallocate(b2) deallocate(b2)
allocate (b2(0:4,0:4)) allocate (b2(0:4,0:4))
if (.not.allocated (b2)) STOP 4 if (.not.allocated (b2)) STOP 52
b2 = 11 b2 = 11
...@@ -93,7 +93,7 @@ program test ...@@ -93,7 +93,7 @@ program test
deallocate(b2) deallocate(b2)
allocate (c3(5,5,5)) allocate (c3(5,5,5))
if (.not.allocated (c3)) STOP 5 if (.not.allocated (c3)) STOP 53
c3 = 12 c3 = 12
...@@ -114,7 +114,7 @@ program test ...@@ -114,7 +114,7 @@ program test
deallocate(c3) deallocate(c3)
allocate (c3(0:4,0:4,0:4)) allocate (c3(0:4,0:4,0:4))
if (.not.allocated (c3)) STOP 6 if (.not.allocated (c3)) STOP 54
c3 = 12 c3 = 12
...@@ -135,13 +135,13 @@ program test ...@@ -135,13 +135,13 @@ program test
deallocate(c3) deallocate(c3)
allocate (a1(5)) allocate (a1(5))
if (.not.allocated (a1)) STOP 7 if (.not.allocated (a1)) STOP 55
allocate (b1(5)) allocate (b1(5))
if (.not.allocated (b1)) STOP 8 if (.not.allocated (b1)) STOP 56
allocate (c1(5)) allocate (c1(5))
if (.not.allocated (c1)) STOP 9 if (.not.allocated (c1)) STOP 57
a1 = 10 a1 = 10
b1 = 3 b1 = 3
...@@ -172,13 +172,13 @@ program test ...@@ -172,13 +172,13 @@ program test
deallocate(c1) deallocate(c1)
allocate (a1(0:4)) allocate (a1(0:4))
if (.not.allocated (a1)) STOP 10 if (.not.allocated (a1)) STOP 58
allocate (b1(0:4)) allocate (b1(0:4))
if (.not.allocated (b1)) STOP 11 if (.not.allocated (b1)) STOP 59
allocate (c1(0:4)) allocate (c1(0:4))
if (.not.allocated (c1)) STOP 12 if (.not.allocated (c1)) STOP 60
a1 = 10 a1 = 10
b1 = 3 b1 = 3
...@@ -209,7 +209,7 @@ program test ...@@ -209,7 +209,7 @@ program test
deallocate(c1) deallocate(c1)
allocate (a1(5)) allocate (a1(5))
if (.not.allocated (a1)) STOP 13 if (.not.allocated (a1)) STOP 61
a1 = 10 a1 = 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment