Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / task-detach-4.c
blobcd0d2b353d6d17c3d5709b520db7abc2cbc42a5a
1 /* { dg-do run } */
3 #include <omp.h>
4 #include <assert.h>
6 /* Test detach clause, where a task fulfills its own completion event. */
8 int main (void)
10 omp_event_handle_t detach_event;
11 int x = 0;
13 detach_event = (omp_event_handle_t) 0x123456789abcdef0;
15 #pragma omp parallel
16 #pragma omp single
17 #pragma omp task detach (detach_event)
19 x++;
20 omp_fulfill_event (detach_event);
23 assert (x == 1);