Debian Codegraph @

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

raw
1 // PR c++/103704
2 // { dg-do compile }
3
4 struct S { int a; };
5
6 template <typename T>
7 struct U : public T {
8 T a;
9 U ()
10 {
11 #pragma omp target
12 #pragma omp teams
13 #pragma omp distribute private(a)
14 for (int k = 0; k < 1; ++k)
15 ;
16 }
17 };
18
19 struct V : public U<S> { V () : U<S> () {} };