mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
18 lines
272 B
C
18 lines
272 B
C
|
/* { 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;
|
||
|
}
|