testsuite: suppress mangling compatibility aliases
[official-gcc.git] / gcc / testsuite / g++.dg / abi / mangle55.C
blob2d5d3a0aee1f1af0ec4598ed9ae09cd07cdd675a
1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options -fabi-compat-version=0 }
4 struct A { int i; };
5 // { dg-final { scan-assembler "_Z2f1Ii1AEDTdsfp_fp0_ET0_MS2_T_" } }
6 template <class T, class U> auto f1 (U u, T U::* p) -> decltype(u.*p) { return u.*p; }
7 // { dg-final { scan-assembler "_Z2f2Ii1AEDTpmfp_fp0_EPT0_MS2_T_" } }
8 template <class T, class U> auto f2 (U* u, T U::* p) -> decltype(u->*p) { return u->*p; }
10 int main()
12   A a = {};
13   f1(a, &A::i);
14   f2(&a, &A::i);