From 6536f6058d5dc096acba71c064c11ce614c70843 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 24 Jan 2017 21:03:48 +0000 Subject: [PATCH] Strengthen test from r292632 to also check we get the mangling correct for this case. llvm-svn: 292978 --- clang/test/CodeGenCXX/mangle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index 229a0799d1b6..91fe6aeef298 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -1130,9 +1130,10 @@ namespace test58 { struct State { bool m_fn1(); } a; - template struct identity_ { typedef T type; }; + template struct identity { typedef T type; }; struct A { - template A(T, bool (identity_::type::*)()); + template A(T, bool (identity::type::*)()); }; + // CHECK-LABEL: @_ZN6test581AC1INS_5StateEEET_MNS_8identityIS3_E4typeEFbvE void fn1() { A(a, &State::m_fn1); } }