1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// PR 24703 // { dg-do compile } void work(int); int work_param; int sphinx_omp_thread_count; int schedule_loop_cap; int measure_omp_parallel_for_dynamic (void) { int j; #pragma omp parallel for schedule(dynamic) for(j=0; j < sphinx_omp_thread_count * schedule_loop_cap; j++) work(work_param); return 0; }