aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/PS/for3.c
blob: 2da8235f3194cdeb5f6fde11201f6b3238ca2d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O3 -fcilkplus" } */

int *a, *c;

void foo()
{
  int i, j;

  // Pointers are OK.
  #pragma simd
  for (int *i=c; i < c; ++i)
    *a = '5';
}