Retro68/gcc/libgomp/testsuite/libgomp.c++/cancel-parallel-1.C

19 lines
284 B
C++
Raw Normal View History

2014-09-21 17:33:12 +00:00
// { dg-do run }
// { dg-set-target-env-var OMP_CANCELLATION "true" }
#include <omp.h>
#include "cancel-test.h"
int
main ()
{
#pragma omp parallel num_threads (32)
{
S a;
#pragma omp cancel parallel
if (omp_get_cancellation ())
abort ();
}
S::verify ();
}