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