* es.po: Update.
[official-gcc.git] / libgomp / testsuite / libgomp.c / cancel-for-1.c
blobf805f13642f547c20e9c68b802d02e199d0ffabe
1 /* { dg-do run } */
2 /* { dg-set-target-env-var OMP_CANCELLATION "true" } */
4 #include <stdlib.h>
5 #include <omp.h>
7 int
8 main ()
10 #pragma omp parallel num_threads (32)
12 int i;
13 #pragma omp for
14 for (i = 0; i < 1000; ++i)
16 #pragma omp cancel for
17 if (omp_get_cancellation ())
18 abort ();
21 return 0;