1 /* Test case to check if the compiler generates an error message
2 when the default version of a multiversioned function is absent
3 and its pointer is taken. */
5 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
6 /* { dg-require-ifunc "" } */
7 /* { dg-options "-O2" } */
9 int __attribute__ ((target ("sse")))
14 int __attribute__ ((target ("popcnt")))
22 int (*p)() = &foo; /* { dg-error "use of multiversioned function without a default" {} } */