Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.c/pr32468.c @ 64:d9bee9007a48
Added tag gcc-4.6-20100522 for changeset b7f97abdc517
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:48:09 +0900 |
parents | a06113de4d67 |
children |
line wrap: on
line source
/* PR libgomp/32468 */ /* { dg-do run } */ #include <omp.h> #include <stdlib.h> int main (void) { int res[2] = { -1, -1 }; omp_set_dynamic (0); omp_set_num_threads (4); #pragma omp parallel { #pragma omp sections { #pragma omp section res[0] = omp_get_num_threads () != 4; #pragma omp section res[1] = omp_get_num_threads () != 4; } } if (res[0] != 0 || res[1] != 0) abort (); return 0; }