* Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
[official-gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / PS / vectorlength.c
blob9aa4a68290d56ee716705fadd80e81241145f935
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fcilkplus" } */
4 volatile int *a, *b, N;
5 typedef int tint;
6 struct someclass {
7 int a;
8 char b;
9 int *p;
12 void foo()
14 #pragma simd vectorlength(4) vectorlength(8) /* { dg-error "too many 'vectorlength' clauses" } */
15 for (int i=0; i < N; ++i)
16 a[i] = b[i];
18 #pragma simd vectorlength(3) /* { dg-error "must be a power of 2" } */
19 for (int i=0; i < N; ++i)
20 a[i] = b[i];