Debian Codegraph @

gcc/testsuite/g++.dg/gomp/pr35337.C

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