2013-06-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgomp / testsuite / libgomp.c / lib-2.c
blob3a3b3f65517b636040949a3e026282713efee0b8
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 ();
24 return 0;