Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / pr84028.f90
blobe60322143ca9e765a785bfa9543cae9de6c09a59
1 ! { dg-do run }
3 ! { dg-additional-options "-Wopenacc-parallelism" } for testing/documenting
4 ! aspects of that functionality.
6 program foo
7 integer :: a(3,3,3), ll, lll
9 a = 1
11 !$acc parallel num_gangs(1) num_workers(2)
12 ! { dg-warning "region is worker partitioned but does not contain worker partitioned code" "" { target *-*-* } .-1 }
14 if (any(a(1:3,1:3,1:3).ne.1)) STOP 1
16 do ll=1,3
18 !$acc loop vector
19 do lll=1,3
20 a(1,ll,lll) = 2
21 enddo
23 enddo
25 if (a(1,1,1).ne.2) STOP 2
27 !$acc end parallel
29 end program foo