Added support for Cilk Plus SIMD-enabled functions for C++.
[official-gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / SE / ef_error3.c
blob195e9f1d7a661cea4c3fc01e8354993f6db84f3a
1 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
2 /* { dg-options "-fcilkplus -Wall" } */
4 __attribute__((vector (linear (x:y)))) /* { dg-message "parameter" "" { target c++ } } */
5 int func2 (int x, int y)
6 { /* { dg-message "using parameters for" "" { target c } } */
7 return (x+y);
10 int main (void)
12 return (func2 (5,6));