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