testsuite/libgomp.c++/pr24455.C

Go to the documentation of this file.
00001 // { dg-do run }
00002 // { dg-additional-sources pr24455-1.C }
00003 // { dg-require-effective-target tls_runtime }
00004 
00005 extern "C" void abort (void);
00006 
00007 extern int i;
00008 #pragma omp threadprivate(i)
00009 
00010 int main()
00011 {
00012   i = 0;
00013 
00014 #pragma omp parallel default(none) num_threads(10) copyin(i)
00015     {
00016       i++;
00017 #pragma omp barrier
00018       if (i != 1)
00019     abort ();
00020     }
00021 
00022     return 0;
00023 }

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