summaryrefslogtreecommitdiff
path: root/test/Coverage
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-01-03 12:08:40 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-01-03 12:08:40 +0000
commit550e0fa7a8a01e4cb76e492ef2c3afdb17f4a764 (patch)
treeeb52c745a7d538457890bf6dab1f2876a2db41eb /test/Coverage
parenta2c5a552d42ca2e3d8e0e526c552d25795778b5c (diff)
Handle UsingDecl and UsingShadowDecl in DeclContextPrinter
This commit fixes a crash that occurs when -print-decl-contexts AST consumer tries to print an unhandled declaration. rdar://19467234 Differential Revision: https://reviews.llvm.org/D26964 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Coverage')
-rw-r--r--test/Coverage/cxx-language-features.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Coverage/cxx-language-features.inc b/test/Coverage/cxx-language-features.inc
index 18e28e0fab..0652d6980a 100644
--- a/test/Coverage/cxx-language-features.inc
+++ b/test/Coverage/cxx-language-features.inc
@@ -33,3 +33,11 @@ struct FriendlyStruct {
};
struct FriendedStruct { };
+
+// Using declaration
+namespace provider {
+ void foo();
+}
+namespace user {
+ using provider::foo;
+}