aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr63249.c
blob: 878788ad7efb37bdee4f8ef860f27b935f00376c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c++/63249 */
/* { dg-do compile } */
/* { dg-options "-Wall -W -fopenmp" } */

int
foo (int *v, int A, int B)	/* { dg-bogus "set but not used" } */
{
  int r = 0;
  int a = 2;			/* { dg-bogus "set but not used" } */
  int b = 4;			/* { dg-bogus "set but not used" } */
#pragma omp target map(to: v[a:b])
  r |= v[3];
#pragma omp target map(to: v[A:B])
  r |= v[3];
  return r;
}