diff options
Diffstat (limited to 'clang/test/CodeCompletion')
-rw-r--r-- | clang/test/CodeCompletion/tag.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/tag.cpp b/clang/test/CodeCompletion/tag.cpp new file mode 100644 index 00000000000..addad9d7690 --- /dev/null +++ b/clang/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 |