aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/map-7.c
blob: 3f1e9729e4178868f00dfc9be536458716b2c87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

void
foo (void)
{
  /* Test to ensure that the close modifier is parsed and ignored in map clauses. */

  #define N 1024
  int always[N];
  int close;

  #pragma omp target map(always[:N]) 
  ;

  #pragma omp target map(close, always[:N]) 
  ;

  #pragma omp target map(always[:N], close) 
  ;
}