[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / udr-1.c
blob7c50ff6f9b747dbf3e6fe8b08607273413b43b39
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp" } */
4 struct S {};
5 void foo (void *, void *);
6 void bar (void *, void *);
7 void baz (void *);
8 #pragma omp declare reduction(+:struct S:foo (&omp_out, &omp_in))initializer(bar(&omp_priv, &omp_orig))
10 void
11 test (void)
13 struct S a, b[10];
14 #pragma omp parallel reduction(+:a)
15 baz (&a);