Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc-gomp/mixed-1.f

raw
1 ! { dg-additional-options "-fdump-tree-original" }
2
3 ! OMP PARALLEL gets parsed and is properly handled
4 ! But ACC& gives an error
5 ! [Before: an error is printed but OMP parses 'parallel loop ...']
6 subroutine one
7 implicit none
8 integer i
9 !$omp parallel
10 !$acc& loop independent ! { dg-error "Wrong OpenMP continuation at .1.: expected !.OMP, got !.ACC" }
11 do i = 1, 5
12 end do
13 !$omp end parallel
14 end
15
16 ! [Before: Bogus 'Wrong OpenMP continuation' as it was read as continuation line!]
17 subroutine two
18 !$omp parallel
19 !$acc loop independent ! { dg-error "The !.ACC LOOP directive cannot be specified within a !.OMP PARALLEL region" }
20 do i = 1, 5
21 end do
22 !$omp end parallel
23 end