testsuite: suppress mangling compatibility aliases
[official-gcc.git] / gcc / testsuite / g++.dg / abi / mangle62a.C
bloba22421a326d2dfded37024a47ce3de0d96da5a6e
1 // Before v8, we mistakenly treated an unqualified function type
2 // as a substitution candidate for a function type with function-cv-quals.
3 // Test for that for backward compatibility.
5 // { dg-options "-fabi-version=7 -fabi-compat-version=7 -Wabi=0" }
7 template <class T, class U> struct A { };
8 // { dg-final { scan-assembler "\n_?_Z1fP1AIKFvvES0_E\[: \t\n\]" } }
9 void f (A<void()const, void()> *){} // { dg-warning "mangle" }
10 // { dg-final { scan-assembler "\n_?_Z1gP1AIFvvEKS0_E\[: \t\n\]" } }
11 void g (A<void(), void()const> *){} // { dg-warning "mangle" }