aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CodeCompletion/tag.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeCompletion/tag.cpp b/test/CodeCompletion/tag.cpp
new file mode 100644
index 0000000000..addad9d769
--- /dev/null
+++ b/test/CodeCompletion/tag.cpp
@@ -0,0 +1,20 @@
+// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
+// RUN: true
+
+class X { };
+struct Y { };
+
+namespace N {
+ template<typename> class Z;
+}
+
+namespace N {
+ class Y;
+
+ void test() {
+ // CHECK-CC1: Y : 2
+ // CHECK-CC1: Z : 2
+ // CHECK-CC1: X : 3
+ // CHECK-CC1: Y : 3
+ // CHECK-CC1: N : 6
+ class