Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/nesting-fail-1.f95

raw
1 ! { dg-do compile }
2
3 ! The OpenACC specification allows nested compute constructs, but we don't
4 ! support that yet. */
5
6 program test
7 implicit none
8
9 integer :: i
10
11 !$acc parallel
12 !$acc kernels ! { dg-bogus ".kernels. construct inside of .parallel. region" "not implemented" { xfail *-*-* } }
13 !$acc end kernels
14 !$acc end parallel
15
16 !$acc parallel
17 !$acc parallel ! { dg-bogus ".parallel. construct inside of .parallel. region" "not implemented" { xfail *-*-* } }
18 !$acc end parallel
19 !$acc end parallel
20
21 !$acc parallel
22 !$acc serial ! { dg-bogus ".serial. construct inside of .parallel. region" "not implemented" { xfail *-*-* } }
23 !$acc end serial
24 !$acc end parallel
25
26 !$acc parallel
27 !$acc parallel ! { dg-bogus ".parallel. construct inside of .parallel. region" "not implemented" { xfail *-*-* } }
28 !$acc end parallel
29 !$acc kernels ! { dg-bogus ".kernels. construct inside of .parallel. region" "not implemented" { xfail *-*-* } }
30 !$acc end kernels
31 !$acc serial ! { dg-bogus ".serial. construct inside of .parallel. region" "not implemented" { xfail *-*-* } }
32 !$acc end serial
33 !$acc end parallel
34
35
36 !$acc kernels
37 !$acc kernels ! { dg-bogus ".kernels. construct inside of .kernels. region" "not implemented" { xfail *-*-* } }
38 !$acc end kernels
39 !$acc end kernels
40
41 !$acc kernels
42 !$acc parallel ! { dg-bogus ".parallel. construct inside of .kernels. region" "not implemented" { xfail *-*-* } }
43 !$acc end parallel
44 !$acc end kernels
45
46 !$acc kernels
47 !$acc serial ! { dg-bogus ".serial. construct inside of .kernels. region" "not implemented" { xfail *-*-* } }
48 !$acc end serial
49 !$acc end kernels
50
51 !$acc kernels
52 !$acc parallel ! { dg-bogus ".parallel. construct inside of .kernels. region" "not implemented" { xfail *-*-* } }
53 !$acc end parallel
54 !$acc kernels ! { dg-bogus ".kernels. construct inside of .kernels. region" "not implemented" { xfail *-*-* } }
55 !$acc end kernels
56 !$acc serial ! { dg-bogus ".serial. construct inside of .kernels. region" "not implemented" { xfail *-*-* } }
57 !$acc end serial
58 !$acc end kernels
59
60
61 !$acc serial
62 !$acc kernels ! { dg-bogus ".kernels. construct inside of .serial. region" "not implemented" { xfail *-*-* } }
63 !$acc end kernels
64 !$acc end serial
65
66 !$acc serial
67 !$acc parallel ! { dg-bogus ".parallel. construct inside of .serial. region" "not implemented" { xfail *-*-* } }
68 !$acc end parallel
69 !$acc end serial
70
71 !$acc serial
72 !$acc serial ! { dg-bogus ".serial. construct inside of .serial. region" "not implemented" { xfail *-*-* } }
73 !$acc end serial
74 !$acc end serial
75
76 !$acc serial
77 !$acc parallel ! { dg-bogus ".parallel. construct inside of .serial. region" "not implemented" { xfail *-*-* } }
78 !$acc end parallel
79 !$acc kernels ! { dg-bogus ".kernels. construct inside of .serial. region" "not implemented" { xfail *-*-* } }
80 !$acc end kernels
81 !$acc serial ! { dg-bogus ".serial. construct inside of .serial. region" "not implemented" { xfail *-*-* } }
82 !$acc end serial
83 !$acc end serial
84
85
86 !$acc parallel
87 !$acc data ! { dg-error ".data. construct inside of .parallel. region" }
88 !$acc end data
89 !$acc end parallel
90
91 !$acc kernels
92 !$acc data ! { dg-error ".data. construct inside of .kernels. region" }
93 !$acc end data
94 !$acc end kernels
95
96 !$acc serial
97 !$acc data ! { dg-error ".data. construct inside of .serial. region" }
98 !$acc end data
99 !$acc end serial
100
101 end program test