1 /* { dg-do compile } */
2 /* { dg-options "-fcilkplus -Wunknown-pragmas" } */
8 __attribute__ ((vector (uniform(x
), vectorlength (), linear (y
:1) ))) /* { dg-error "expected expression" "" { target c } } */
9 /* { dg-error "expected primary-expression" "" { target c++ } 8 } */
10 int func2 (int x
, int y
)
16 __attribute__ ((vector (uniform(x
), linear (y
:1), vectorlength (4.5) ))) /* { dg-error "vectorlength must be an integer" } */
17 int func3 (int x
, int y
)
23 __attribute__ ((vector (uniform(x
), linear (y
:1), vectorlength (z
) ))) /* { dg-error "vectorlength must be an integer" "" { target c } } */
24 /* { dg-error "constant" "" { target c++ } 23 } */
25 int func4 (int x
, int y
)
31 __attribute__ ((vector (uniform(x
), linear (y
:1), vectorlength (Q
) ))) /* This is OK! */
32 int func5 (int x
, int y
)
38 __attribute__ ((vector (uniform(x
), vectorlength (z
), linear (y
:1)))) /* { dg-error "vectorlength must be an integer" "" { target c } } */
39 /* { dg-error "constant" "" { target c++ } 38 } */
40 int func6 (int x
, int y
)
46 __attribute__ ((vector (uniform(x
), linear (y
:1), vectorlength (sizeof (int)) ))) /* This is OK too! */
47 int func7 (int x
, int y
)
56 for (ii
= 0; ii
< 10; ii
++)