Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/critical.f95

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-fcoarray=single" }
3
4 module test
5 contains
6 subroutine oacc1
7 implicit none
8 integer :: i, j
9 j = 0
10 !$acc parallel
11 critical ! { dg-error "CRITICAL block inside of" }
12 j = j + 1
13 end critical
14 !$acc end parallel
15 !$acc serial
16 critical ! { dg-error "CRITICAL block inside of" }
17 j = j + 1
18 end critical
19 !$acc end serial
20 end subroutine oacc1
21
22 subroutine oacc2
23 implicit none
24 integer :: i, j
25 j = 0
26 critical
27 !$acc parallel ! { dg-error "OpenACC directive inside of" }
28 j = j + 1
29 !$acc end parallel
30 !$acc serial ! { dg-error "OpenACC directive inside of" }
31 j = j + 1
32 !$acc end serial
33 end critical
34 end subroutine oacc2
35 end module test