PR middle-end/84723
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr84723-3.c
blobbb8e7cabc88e33bb3342fc3cd2ad2eb29c0aba50
1 /* PR middle-end/84723 */
2 /* { dg-do compile } */
3 /* { dg-require-ifunc } */
4 /* { dg-options "-O2" } */
6 __attribute__((target_clones ("avx", "default")))
7 int
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;