annotate gcc/testsuite/c-c++-common/gomp/clauses-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
1 /* { dg-skip-if "PR 68733" { hppa*-*-hpux* && { ! lp64 } } } */
111
kono
parents:
diff changeset
2 struct S { int r; int *s; int t[10]; };
kono
parents:
diff changeset
3 void bar (int *);
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 void
kono
parents:
diff changeset
6 foo (int *p, int q, struct S t, int i, int j, int k, int l)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 #pragma omp target map (q), firstprivate (q) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
9 bar (&q);
kono
parents:
diff changeset
10 #pragma omp target map (p[0]) firstprivate (p) /* { dg-error "appears more than once in data clauses" } */
kono
parents:
diff changeset
11 bar (p);
kono
parents:
diff changeset
12 #pragma omp target firstprivate (p), map (p[0]) /* { dg-error "appears more than once in data clauses" } */
kono
parents:
diff changeset
13 bar (p);
kono
parents:
diff changeset
14 #pragma omp target map (p[0]) map (p) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
15 bar (p);
kono
parents:
diff changeset
16 #pragma omp target map (p) , map (p[0]) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
17 bar (p);
kono
parents:
diff changeset
18 #pragma omp target map (q) map (q) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
19 bar (&q);
kono
parents:
diff changeset
20 #pragma omp target map (p[0]) map (p[0]) /* { dg-error "appears more than once in data clauses" } */
kono
parents:
diff changeset
21 bar (p);
kono
parents:
diff changeset
22 #pragma omp target map (t) map (t.r) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
23 bar (&t.r);
kono
parents:
diff changeset
24 #pragma omp target map (t.r) map (t) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
25 bar (&t.r);
kono
parents:
diff changeset
26 #pragma omp target map (t.r) map (t.r) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
27 bar (&t.r);
kono
parents:
diff changeset
28 #pragma omp target firstprivate (t), map (t.r) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
29 bar (&t.r);
kono
parents:
diff changeset
30 #pragma omp target map (t.r) firstprivate (t) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
31 bar (&t.r);
kono
parents:
diff changeset
32 #pragma omp target map (t.s[0]) map (t) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
33 bar (t.s);
kono
parents:
diff changeset
34 #pragma omp target map (t) map(t.s[0]) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
35 bar (t.s);
kono
parents:
diff changeset
36 #pragma omp target firstprivate (t) map (t.s[0]) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
37 bar (t.s);
kono
parents:
diff changeset
38 #pragma omp target map (t.s[0]) firstprivate (t) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
39 bar (t.s);
kono
parents:
diff changeset
40 #pragma omp target map (t.s[0]) map (t.s[2]) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
41 bar (t.s);
kono
parents:
diff changeset
42 #pragma omp target map (t.t[0:2]) map (t.t[4:6]) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
43 bar (t.t);
kono
parents:
diff changeset
44 #pragma omp target map (t.t[i:j]) map (t.t[k:l]) /* { dg-error "appears more than once in map clauses" } */
kono
parents:
diff changeset
45 bar (t.t);
kono
parents:
diff changeset
46 #pragma omp target map (t.s[0]) map (t.r)
kono
parents:
diff changeset
47 bar (t.s);
kono
parents:
diff changeset
48 #pragma omp target map (t.r) ,map (t.s[0])
kono
parents:
diff changeset
49 bar (t.s);
kono
parents:
diff changeset
50 #pragma omp target map (t.r) map (t) map (t.s[0]) firstprivate (t) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
51 bar (t.s);
kono
parents:
diff changeset
52 #pragma omp target map (t) map (t.r) firstprivate (t) map (t.s[0]) /* { dg-error "appears both in data and map clauses" } */
kono
parents:
diff changeset
53 bar (t.s); /* { dg-error "appears more than once in map clauses" "" { target *-*-* } .-1 } */
kono
parents:
diff changeset
54 }