annotate gcc/testsuite/c-c++-common/gomp/pr63249.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c++/63249 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-Wall -W -fopenmp" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 int
kono
parents:
diff changeset
6 foo (int *v, int A, int B) /* { dg-bogus "set but not used" } */
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int r = 0;
kono
parents:
diff changeset
9 int a = 2; /* { dg-bogus "set but not used" } */
kono
parents:
diff changeset
10 int b = 4; /* { dg-bogus "set but not used" } */
kono
parents:
diff changeset
11 #pragma omp target map(to: v[a:b])
kono
parents:
diff changeset
12 r |= v[3];
kono
parents:
diff changeset
13 #pragma omp target map(to: v[A:B])
kono
parents:
diff changeset
14 r |= v[3];
kono
parents:
diff changeset
15 return r;
kono
parents:
diff changeset
16 }