diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/abi/mangle57.C')
-rw-r--r-- | gcc/testsuite/g++.dg/abi/mangle57.C | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.dg/abi/mangle57.C b/gcc/testsuite/g++.dg/abi/mangle57.C index cd59cb87b1..46cf377ebc 100644 --- a/gcc/testsuite/g++.dg/abi/mangle57.C +++ b/gcc/testsuite/g++.dg/abi/mangle57.C @@ -1,13 +1,13 @@ // { dg-do compile { target c++11 } } -// { dg-options "-fabi-version=0" } +// { dg-options "-fabi-version=0 -Wabi=2" } template<typename T> int cmp1(T a, T b); int cmp2(char a, char b); template<typename T, int (*cmp)(T, T)> struct A { }; -// { dg-final { scan-assembler "_Z1fIcEvR1AIT_X4cmp1EE" } } -template <typename T> void f (A<T,cmp1> &); -// { dg-final { scan-assembler "_Z1fIcEvR1AIT_L_Z4cmp2ccEE" } } -template <typename T> void f (A<T,cmp2> &); +// { dg-final { scan-assembler "\n_?_Z1fIcEvR1AIT_X4cmp1EE\[: \t\n\]" } } +template <typename T> void f (A<T,cmp1> &) {} +// { dg-final { scan-assembler "\n_?_Z1fIcEvR1AIT_L_Z4cmp2ccEE\[: \t\n\]" } } +template <typename T> void f (A<T,cmp2> &) {} // { dg-warning "mangle" } void g() { A<char,cmp1> a; |