blob: 5bab86118baa94bf8347777d4aea2e9ce85b23d1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PR c++/58702
// { dg-do compile }
// { dg-options "-fopenmp" }
void foo()
{
x; // { dg-error "was not declared" }
#pragma omp parallel for reduction(+:x)
for (int i = 0; i < 10; ++i) ;
}
|