1 // RUN: %libomp-compile-and-run
3 #include "omp_testsuite.h"
5 int test_omp_critical()
16 for (i
= 0; i
< 1000; i
++)
22 known_sum
= 999 * 1000 / 2;
23 return (known_sum
== sum
);
31 for(i
= 0; i
< REPETITIONS
; i
++) {
32 if(!test_omp_critical()) {