// { dg-do compile { target c++11 } } // { dg-options "-fabi-version=0 -fabi-compat-version=0 -Wabi=2" } template int cmp1(T a, T b); int cmp2(char a, char b); template struct A { }; // { dg-final { scan-assembler "\n_?_Z1fIcEvR1AIT_X4cmp1EE\[: \t\n\]" } } template void f (A &) {} // { dg-final { scan-assembler "\n_?_Z1fIcEvR1AIT_L_Z4cmp2ccEE\[: \t\n\]" } } template void f (A &) {} // { dg-warning "mangle" } void g() { A a; f(a); A a2; f(a2); }