Douglas Gregor | 49f40bd | 2009-09-18 19:03:04 +0000 | [diff] [blame] | 1 | namespace N4 { |
| 2 | namespace N3 { } |
| 3 | } |
| 4 | |
| 5 | class N3; |
| 6 | |
| 7 | namespace N2 { |
| 8 | namespace I1 { } |
| 9 | namespace I4 = I1; |
| 10 | namespace I5 { } |
| 11 | namespace I1 { } |
| 12 | |
| 13 | void foo() { |
| 14 | int N3; |
| 15 | |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 16 | using |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 17 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:16:10 %s -o - | FileCheck -check-prefix=CC1 %s |
Douglas Gregor | 49f40bd | 2009-09-18 19:03:04 +0000 | [diff] [blame] | 18 | // CHECK-CC1: I1 : 2 |
| 19 | // CHECK-CC1: I4 : 2 |
| 20 | // CHECK-CC1: I5 : 2 |
Douglas Gregor | 0563c26 | 2009-09-22 23:15:58 +0000 | [diff] [blame] | 21 | // CHECK-CC1: N2 : 4 |
| 22 | // CHECK-CC1: N3 : 4 |
Douglas Gregor | 119fa68 | 2009-09-24 22:57:42 +0000 | [diff] [blame] | 23 | // CHECK-CC1-NEXT: N4 : 4 |
Douglas Gregor | 49f40bd | 2009-09-18 19:03:04 +0000 | [diff] [blame] | 24 | |