AVR: Propose to use attribute signal(n) via AVR-LibC's ISR_N.
[official-gcc.git] / libgomp / testsuite / libgomp.c / lib-2.c
blobea7a71904f09f30f29d9d9b86c4b5a370011f558
1 #include <stdlib.h>
2 #include <omp.h>
4 int
5 main (void)
7 omp_sched_t kind;
8 int modifier;
10 omp_set_schedule (omp_sched_static, 32);
11 omp_get_schedule (&kind, &modifier);
12 if (kind != omp_sched_static || modifier != 32)
13 abort ();
14 omp_set_schedule (omp_sched_guided, 4);
15 omp_get_schedule (&kind, &modifier);
16 if (kind != omp_sched_guided || modifier != 4)
17 abort ();
18 if (omp_get_thread_limit () < 0)
19 abort ();
20 omp_set_max_active_levels (6);
21 if (omp_get_max_active_levels () != 6)
22 abort ();
23 if (omp_get_max_active_levels () > omp_get_supported_active_levels ())
24 abort ();
26 return 0;