1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fcilkplus" } */
3 
4 volatile int *a, *b, N;
5 typedef int tint;
6 struct someclass {
7   int a;
8   char b;
9   int *p;
10 };
11 
foo()12 void foo()
13 {
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];
17 
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];
21 }
22