From afecd837466d7581d4595aba03911ed5c8ac1bcc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 24 Oct 2016 20:47:04 +0000 Subject: Fix bug where one of the cases where we mangle a failed to emit the portion. Refactor so that mangleUnresolvedName actually emits the entire , so this mistake is harder to make again. llvm-svn: 285022 --- clang/test/CodeGenCXX/mangle.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGenCXX/mangle.cpp') diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index 8ae67c415ae..3a94071294d 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -1118,3 +1118,10 @@ namespace test56 { // CHECK-LABEL: @_ZN6test561fILi0EEEvDTplptL_ZNS_1aEE1nT_E template void f<0>(int); } + +namespace test57 { + struct X { template int f(); } x; + template void f(decltype(x.f<0>() + N)) {} + // CHECK-LABEL: @_ZN6test571fILi0EEEvDTplcldtL_ZNS_1xEE1fIXLi0EEEET_E + template void f<0>(int); +} -- cgit v1.2.3