Sign in
gnu
/
gcc
/
4212a6a3e44f870412d9025eeb323fd4f50a61da
/
.
/
libgomp
/
testsuite
/
libgomp.c
/
cancel-parallel-1.c
blob: 614eb50f0d6ef234fbbd3b0f140a283d0feb5b27 [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-set-target-env-var OMP_CANCELLATION "true" } */
#include
<stdlib.h>
#include
<omp.h>
int
main
()
{
#pragma
omp parallel num_threads
(
32
)
{
#pragma
omp cancel parallel
if
(
omp_get_cancellation
())
abort
();
}
return
0
;
}