ca431befaa
2015-06-15 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting in dg-options. * testsuite/libgomp.c/atomic-3.c: Same. * testsuite/libgomp.c/debug-1.c: Same. * testsuite/libgomp.c/nqueens-1.c: Same. * testsuite/libgomp.c/pr26171.c: Same. * testsuite/libgomp.c/pr48591.c: Same. * testsuite/libgomp.c/pr64824.c: Same. * testsuite/libgomp.c/pr64868.c: Same. * testsuite/libgomp.c/pr66133.c: Same. * testsuite/libgomp.c/pr66199-1.c: Same. * testsuite/libgomp.c/pr66199-2.c: Same. * testsuite/libgomp.c/target-8.c: Same. From-SVN: r224480
35 lines
398 B
C
35 lines
398 B
C
/* PR middle-end/66133 */
|
|
/* { dg-do run } */
|
|
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
volatile int x;
|
|
|
|
__attribute__((noinline)) void
|
|
foo (void)
|
|
{
|
|
if (x == 0)
|
|
{
|
|
#pragma omp task
|
|
{
|
|
usleep (2000);
|
|
exit (0);
|
|
}
|
|
}
|
|
else
|
|
abort ();
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#pragma omp parallel num_threads (2)
|
|
{
|
|
#pragma omp barrier
|
|
#pragma omp single
|
|
foo ();
|
|
}
|
|
exit (0);
|
|
}
|