1 /* Trivial test of critical sections. */
3 /* { dg-require-effective-target sync_int_long } */
12 static volatile int test = -1;
14 static void function(void *dummy)
16 int iam = omp_get_thread_num ();
19 GOMP_critical_start ();
21 old = __sync_lock_test_and_set (&test, iam);
34 GOMP_parallel_start (function, NULL, 3);