From 549741a3bcb6006a7afb39f048f7a202c35e66ae Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Mon, 3 Oct 2016 12:22:17 +0000 Subject: Fix PR 28885: Fix AST Printer output for the inherited constructor using declarations. This commit ensures that the correct record type is printed out for the using declarations that represent C++ inherited constructors. It fixes a regression introduced in r274049 which changed the name that's stored in the using declarations that correspond to inherited constructors. Differential Revision: https://reviews.llvm.org/D25131 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283105 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/cxx11-ast-print.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/SemaCXX/cxx11-ast-print.cpp') diff --git a/test/SemaCXX/cxx11-ast-print.cpp b/test/SemaCXX/cxx11-ast-print.cpp index 1eeb67a3d9..9c617af4e9 100644 --- a/test/SemaCXX/cxx11-ast-print.cpp +++ b/test/SemaCXX/cxx11-ast-print.cpp @@ -43,6 +43,14 @@ template const char *operator"" _suffix(); // CHECK: const char *PR23120 = operator""_suffix(); const char *PR23120 = U"𐐷"_suffix; +// PR28885 +struct A { + A(); +}; +struct B : A { + using A::A; // CHECK: using A::A; +}; // CHECK-NEXT: }; + // CHECK: ; ; // CHECK-NOT: ; -- cgit v1.2.1