Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / ext / mv4.C
blobff1cc2f63f43bfe03eb0975e9bac57ecb533f92e
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")))
10 foo ()
12   return 1;
14 int __attribute__ ((target ("popcnt")))
15 foo ()
17   return 0;
20 int main ()
22   int (*p)() = &foo; /* { dg-error "use of multiversioned function without a default" {} } */
23   return (*p)();