summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/preprocess-1.c
blob: 714c8404d8344d0c2d7109ffe8f069d3157a12dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do preprocess } */

void foo (void)
{
  int i1, j1, k1;
#define p parallel
#define P(x) private (x##1)
#define S(x) shared (x##1)
#define F(x) firstprivate (x##1)
#pragma omp p P(i) \
  S(j) \
  F(k)
  ;
}

/* { dg-final { scan-file preprocess-1.i "(^|\n)#pragma omp parallel private \\(i1\\) shared \\(j1\\) firstprivate \\(k1\\)($|\n)" } } */