2 // C++ DR 605 -- "...the linkage of an explicit specialization must be that of
5 // { dg-require-weak "" }
6 // { dg-do compile { target i?86-*-* x86_64-*-* } }
11 // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IfEvT_" } }
13 void f1<float> (float) { } // Expected to have static linkage
18 // { dg-final { scan-assembler ".glob(a|)l\[\t \]*_?_Z2f2IfEvT_" } }
20 void f2<float> (float) { } // Expected to have global linkage
24 // { dg-final { scan-assembler-not ".glob(a|)l\[\t \]*_?_Z2f1IiEvT_" } }
25 f1(0); // Expected to have static linkage
27 // { dg-final { scan-assembler ".weak(_definition)?\[\t \]*_?_Z2f2IiEvT_" { target { ! { *-*-mingw* *-*-cygwin } } } } }
28 f2(0); // Expected to have weak global linkage