aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/ivdep.c
blob: 23d51de9fe3d13d0c45e556b0347793bf8a02265 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */

/* PR other/33426 */

void foo(int n, int *a, int *b, int *c, int *d, int *e) {
  int i, j;
#pragma GCC ivdep
  for (i = 0; ; ++i) { /* { dg-error "missing loop condition in loop with 'GCC ivdep' pragma before ';' token" } */
    a[i] = b[i] + c[i];
  }
}