blob: 198e4c13e03bb6fc00a71351f4610f81d74b00c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* PR c/51339 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
char g[] = "g";
void
foo (void)
{
#pragma omp parallel sections firstprivate (g) lastprivate (g)
{
#pragma omp section
g[0] = 'h';
}
}
|