1 /* PR middle-end/84723 */
2 /* { dg-do compile } */
3 /* { dg-require-ifunc } */
4 /* { dg-options "-O2" } */
5
6 __attribute__((target_clones ("avx", "default")))
7 int
foo(int x)8 foo (int x) /* { dg-error "clones for .target_clones. attribute cannot be created" } */
9 { /* { dg-message "function .foo. can never be copied because it receives a non-local goto" "" { target *-*-* } .-1 } */
10 __label__ lab;
11 __attribute__((noinline)) void bar () { goto lab; }
12 if (x == 5)
13 bar ();
14 x++;
15 lab:;
16 return x;
17 }
18