1 /* PR middle-end/78419 */
2 /* { dg-do compile } */
3 /* { dg-require-ifunc "" } */
4 
5 static double bar (double *__restrict, double *__restrict, int)
6 __attribute__ ((target_clones("avx,foo,avx2,avx512f,default")));
7 
8 double
foo(double * __restrict a,double * __restrict b,int n)9 foo (double *__restrict a, double *__restrict b, int n)
10 {
11   return bar (a,b,n);
12 }
13 
14 double
bar(double * __restrict a,double * __restrict b,int n)15 bar (double *__restrict a, double *__restrict b, int n)	/* { dg-error "attribute\[^\n\r]*foo\[^\n\r]* is unknown" } */
16 {
17   double s;
18   int i;
19   s = 0.0;
20   for (i=0; i<n; i++)
21     s += a[i] + b[i];
22 
23   return s;
24 }
25