* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / pragma-3.c
blob53daee766404c51ab274bf854a2edff30310f678
1 /*
2 { dg-options "-fopenmp" }
3 { dg-do preprocess }
4 { dg-require-effective-target fopenmp }
5 */
7 void foo (void)
9 int i1, j1, k1;
10 #define p parallel
11 #define P(x) private (x##1)
12 #define S(x) shared (x##1)
13 #define F(x) firstprivate (x##1)
14 #pragma omp \
15 p \
16 P(i) \
17 S(j) \
18 F(k)
22 /*
23 The bug here was that we had a line like:
24 # 33554432 "../../gcc/testsuite/gcc.dg/cpp/pragma-3.c"
26 Before line:
28 #pragma omp parallel private (i1) shared (j1) firstprivate (k1)
30 Note the very big integer there. Normally we should just have
31 this:
33 # 13 "../../gcc/testsuite/gcc.dg/cpp/pragma-3.c"
34 #pragma omp parallel private (i1) shared (j1) firstprivate (k1)
36 So let's check that we have no line with a number of 3 or more
37 digit after #:
39 { dg-final { scan-file-not pragma-3.i "# \[0-9\]{3} \[^\n\r\]*pragma-3.c" } }