1 /* { dg-additional-options "-Wno-deprecated-declarations" } */
9 int d_o
= omp_get_dynamic ();
10 int n_o
= omp_get_nested ();
13 omp_get_schedule (&s_o
, &c_o
);
14 int m_o
= omp_get_max_threads ();
17 omp_set_schedule (omp_sched_static
, 2);
18 omp_set_num_threads (4);
19 int d
= omp_get_dynamic ();
20 int n
= omp_get_nested ();
23 omp_get_schedule (&s
, &c
);
24 int m
= omp_get_max_threads ();
25 if (!omp_is_initial_device ())
27 #pragma omp target if (0)
31 omp_get_schedule (&s_c
, &c_c
);
32 if (d_o
!= omp_get_dynamic ()
33 || n_o
!= omp_get_nested ()
36 || m_o
!= omp_get_max_threads ())
40 omp_set_schedule (omp_sched_dynamic
, 4);
41 omp_set_num_threads (2);
42 if (!omp_is_initial_device ())
45 if (!omp_is_initial_device ())
49 omp_get_schedule (&s_c
, &c_c
);
50 if (d
!= omp_get_dynamic ()
51 || n
!= omp_get_nested ()
54 || m
!= omp_get_max_threads ())
56 #pragma omp target if (0)
58 #pragma omp parallel if(0)
62 omp_get_schedule (&s_c
, &c_c
);
63 if (d_o
!= omp_get_dynamic ()
64 || n_o
!= omp_get_nested ()
67 || m_o
!= omp_get_max_threads ())
71 omp_set_schedule (omp_sched_dynamic
, 4);
72 omp_set_num_threads (2);
73 if (!omp_is_initial_device ())
76 if (!omp_is_initial_device ())
78 omp_get_schedule (&s_c
, &c_c
);
79 if (d
!= omp_get_dynamic ()
80 || n
!= omp_get_nested ()
83 || m
!= omp_get_max_threads ())