aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/nesting-warn-1.c
blob: 800ad5321087986e70beb7c5437098de069a4015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
extern int i;

void
f_omp_target (void)
{
#pragma omp target
  {
#pragma omp target /* { dg-warning ".target. construct inside of .target. region" } */
    ;
#pragma omp target data map(i) /* { dg-warning ".target data. construct inside of .target. region" } */
    ;
#pragma omp target update to(i) /* { dg-warning ".target update. construct inside of .target. region" } */

#pragma omp parallel
    {
#pragma omp target /* { dg-warning ".target. construct inside of .target. region" } */
      ;
#pragma omp target data map(i) /* { dg-warning ".target data. construct inside of .target. region" } */
      ;
#pragma omp target update to(i) /* { dg-warning ".target update. construct inside of .target. region" } */
    }
  }
}