summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr51360.c
blob: cc03849a1885b5d10e83b44a4df32e5c85949603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR c/51360 */
/* { dg-do compile } */
/* { dg-options "-Wunused -W -fopenmp" } */

void
foo (int a, int b, int c)
{
  int m, n, o, i;
  m = 6;
  n = 1;
  o = 5;
  a = 6;
  b = 1;
  c = 5;
  #pragma omp parallel for num_threads (m) if (n) schedule (static, o)
  for (i = 0; i < 10; i++)
    ;
  #pragma omp parallel for num_threads (a) if (b) schedule (static, c)
  for (i = 0; i < 10; i++)
    ;
}