Strengthen test from r292632 to also check we get the mangling correct for this case.

llvm-svn: 292978
This commit is contained in:
Richard Smith 2017-01-24 21:03:48 +00:00
parent 85824ee618
commit 6536f6058d
1 changed files with 3 additions and 2 deletions

View File

@ -1130,9 +1130,10 @@ namespace test58 {
struct State { struct State {
bool m_fn1(); bool m_fn1();
} a; } a;
template <class T> struct identity_ { typedef T type; }; template <class T> struct identity { typedef T type; };
struct A { struct A {
template <typename T> A(T, bool (identity_<T>::type::*)()); template <typename T> A(T, bool (identity<T>::type::*)());
}; };
// CHECK-LABEL: @_ZN6test581AC1INS_5StateEEET_MNS_8identityIS3_E4typeEFbvE
void fn1() { A(a, &State::m_fn1); } void fn1() { A(a, &State::m_fn1); }
} }