summaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx11-ast-print.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2016-10-03 12:22:17 +0000
committerAlex Lorenz <arphaman@gmail.com>2016-10-03 12:22:17 +0000
commit549741a3bcb6006a7afb39f048f7a202c35e66ae (patch)
tree4f75298f8d2446462f7237090711ab66ff610c9a /test/SemaCXX/cxx11-ast-print.cpp
parente387da0a61b392c051faa4d9a6eb773376e3ec8b (diff)
downloadclang-549741a3bcb6006a7afb39f048f7a202c35e66ae.tar.gz
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
Diffstat (limited to 'test/SemaCXX/cxx11-ast-print.cpp')
-rw-r--r--test/SemaCXX/cxx11-ast-print.cpp8
1 files changed, 8 insertions, 0 deletions
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 <class C, C...> const char *operator"" _suffix();
// CHECK: const char *PR23120 = operator""_suffix<char32_t, 66615>();
const char *PR23120 = U"𐐷"_suffix;
+// PR28885
+struct A {
+ A();
+};
+struct B : A {
+ using A::A; // CHECK: using A::A;
+}; // CHECK-NEXT: };
+
// CHECK: ;
;
// CHECK-NOT: ;