re PR c++/86443 (ICEs on #pragma omp distribute parallel for with class iterators)
[gcc.git] / libgomp / testsuite / libgomp.c / lib-2.c
1 #include <stdlib.h>
2 #include <omp.h>
3
4 int
5 main (void)
6 {
7 omp_sched_t kind;
8 int modifier;
9
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
24 return 0;
25 }