blob: 03dfc5f180bfc820f681695efcaf1ef7412e6402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PR middle-end/56217
// { dg-do compile }
// { dg-options "-fopenmp" }
struct S { int *p; S (); S (S &); };
S
foo ()
{
S s;
#pragma omp task shared (s)
s.p = 0;
return s;
}
|