OSDN Git Service

Pizza-lize :-)
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / gomp / pr49223-1.C
1 // PR c++/49223
2 // { dg-do compile }
3 // { dg-options "-fopenmp" }
4
5 template <int N>
6 struct V
7 {
8   V () {}
9   ~V () {}
10 };
11
12 template <int N>
13 struct S
14 {
15   void foo ()
16   {
17     V <0> v;
18     #pragma omp parallel private (v)
19       ;
20   }
21 };
22
23 void
24 bar (void)
25 {
26   S <0> s;
27   s.foo ();
28 }