aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cilk-plus/pragma_simd_tests/compile/cond_vlength.c
blob: 904032c854716114e14518c4d7972b617d210dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */
/* { dg-options " -w " } */

int main ()
{
  int i;
  float a[256];

  // The line below should be OK! 
  #pragma simd vectorlength(sizeof (a) == sizeof (float) ? 4 : 8) 
  for (i = 0; i < 256; i++)
    {
      a[i] = i;
    }

  return 0;
}