testsuite/libgomp.c++/pr26691.C

Go to the documentation of this file.
00001 // PR c++/26691
00002 
00003 struct A
00004 {
00005   int n;
00006   A (int i = 3) : n (i) {}
00007 };
00008 
00009 int
00010 main ()
00011 {
00012   A a;
00013   int err = 0;
00014 #pragma omp parallel private (a) reduction (+:err)
00015   if (a.n != 3)
00016     err++;
00017 
00018   return err;
00019  }
00020 

Generated on Fri Apr 5 05:38:10 2013 for Libgomp by  doxygen 1.4.7