mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-01 11:52:47 +00:00
19 lines
284 B
C
19 lines
284 B
C
// { 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 ();
|
|
}
|