[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / pr57548.C
blob1cc728d294c0365bfbd86e6fd240b4ff2282eb69
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-require-ifunc "" }  */
4 int fum (); // Extra declaration that is merged with the second one.
5 int fum () __attribute__ ((target("default")));
8 int fum () __attribute__((target( "mmx")));
9 int fum () __attribute__((target( "popcnt")));
10 int fum () __attribute__((target( "sse")));
11 int fum () __attribute__((target( "sse2")));
12 int fum () __attribute__((target( "sse3")));
13 int fum () __attribute__((target( "ssse3")));
14 int fum () __attribute__((target( "sse4.1")));
15 int fum () __attribute__((target( "sse4.2")));
16 int fum () __attribute__((target( "avx")));
17 int fum () __attribute__((target( "avx2")));
19 int fum () __attribute__((target("arch=core2")));
20 int fum () __attribute__((target("arch=corei7")));
21 int fum () __attribute__((target("arch=atom")));
23 int (*p)() = &fum;
25 int j = fum();