From eeb00e3fd54addd6787926c7804bf7eadb3384d6 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292978 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/mangle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index 229a0799d1..91fe6aeef2 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/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); } } -- 2.40.0