blob: 9afc3919a8db8743897040e1d10eddcd106fa210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
{ dg-options "-fopenmp" }
{ 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)
;
}
/*
The bug here was that we had a line like:
# 33554432 "../../gcc/testsuite/gcc.dg/cpp/pragma-3.c"
Before line:
#pragma omp parallel private (i1) shared (j1) firstprivate (k1)
Note the very big integer there. Normally we should just have
this:
# 13 "../../gcc/testsuite/gcc.dg/cpp/pragma-3.c"
#pragma omp parallel private (i1) shared (j1) firstprivate (k1)
So let's check that we have no line with a number of 3 or more
digit after #:
{ dg-final { scan-file-not pragma-3.i "# \[0-9\]{3} \[^\n\r\]*pragma-3.c" } }
*/
|