gcc/testsuite/gcc.target/i386/pr84723-1.c
raw| 1 | /* PR middle-end/84723 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | __attribute__((target_clones ("avx", "default"))) |
| 6 | __attribute__((noclone)) |
| 7 | void |
| 8 | foo (void) /* { dg-error "clones for .target_clones. attribute cannot be created" } */ |
| 9 | { /* { dg-message "function .foo. can never be copied because it has .noclone. attribute" "" { target *-*-* } .-1 } */ |
| 10 | } |