aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/unroll-8.c
blob: 8cf05005af18dce5ba5c61eb9d28ae9481d394bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
extern void dummy (int);

void
test3 (int x)
{
#pragma omp unroll full	/* { dg-error "non-constant iteration count of 'unroll full' loop" } */
  for (int i = x; i < 20; i += 3)
    dummy (i);
}

void
test4 (int x)
{
#pragma omp unroll full	/* { dg-error "non-constant iteration count of 'unroll full' loop" } */
  for (int i = 5; i < x + 6; ++i)
    dummy (i);
}

void
test5 (int x)
{
#pragma omp unroll full	/* { dg-error "non-constant iteration count of 'unroll full' loop" } */
  for (int i = 5; i < 142; i += x)
    dummy (i);
}