1 // Test mangling of type casts
2 // { dg-options "-fabi-version=2 -Wabi" }
5 template<int i> class A {};
6 template<bool b> class B {};
8 template<int i> void f(A<i> &, B<bool(i)> &) {}
9 template<int i> void g(A<i> &, B<static_cast<bool>(i)> &) {} // { dg-warning "mangle" }
19 // { dg-final { scan-assembler "\n_?_Z1fILi1EEvR1AIXT_EER1BIXcvbT_EE\[: \t\n\]" } }
20 // { dg-final { scan-assembler "\n_?_Z1gILi1EEvR1AIXT_EER1BIXcvbT_EE\[: \t\n\]" } }