diff options
Diffstat (limited to 'test/CodeCompletion/using.cpp')
-rw-r--r-- | test/CodeCompletion/using.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/CodeCompletion/using.cpp b/test/CodeCompletion/using.cpp new file mode 100644 index 0000000000..7bef353459 --- /dev/null +++ b/test/CodeCompletion/using.cpp @@ -0,0 +1,27 @@ +// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s && +// RUN: true + +namespace N4 { + namespace N3 { } +} + +class N3; + +namespace N2 { + namespace I1 { } + namespace I4 = I1; + namespace I5 { } + namespace I1 { } + + void foo() { + int N3; + + // CHECK-CC1: I1 : 2 + // CHECK-CC1: I4 : 2 + // CHECK-CC1: I5 : 2 + // CHECK-CC1: N2 : 3 + // CHECK-CC1: N3 : 3 + // CHECK-NEXT-CC1: N4 : 3 + using + + |