blob: 2e9ca6b207fab77aaad7517c151d858248a3216c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// PR c++/35337
// { dg-do compile }
// { dg-options "-fopenmp" }
struct A { };
void
foo ()
{
#pragma omp parallel firstprivate(A) // { dg-error "struct A\[^\n\]*is not a variable" }
;
}
void
bar ()
{
#pragma omp for lastprivate(A) // { dg-error "struct A\[^\n\]*is not a variable" }
for (int i = 0; i < 10; i++)
;
}
|