xref: /minix3/external/bsd/llvm/dist/clang/test/CodeCompletion/using-namespace.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc namespace N4 {
2*f4a2713aSLionel Sambuc   namespace N3 { }
3*f4a2713aSLionel Sambuc }
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc class N3;
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc namespace N2 {
8*f4a2713aSLionel Sambuc   namespace I1 { }
9*f4a2713aSLionel Sambuc   namespace I4 = I1;
10*f4a2713aSLionel Sambuc   namespace I5 { }
11*f4a2713aSLionel Sambuc   namespace I1 { }
12*f4a2713aSLionel Sambuc 
foo()13*f4a2713aSLionel Sambuc   void foo() {
14*f4a2713aSLionel Sambuc     using namespace
15*f4a2713aSLionel Sambuc     // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:14:20 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
16*f4a2713aSLionel Sambuc     // CHECK-CC1: I1
17*f4a2713aSLionel Sambuc     // CHECK-CC1: I4
18*f4a2713aSLionel Sambuc     // CHECK-CC1: I5
19*f4a2713aSLionel Sambuc     // CHECK-CC1: N2
20*f4a2713aSLionel Sambuc     // CHECK-CC1-NEXT: N4
21