Douglas Gregor | 33224e6 | 2009-09-18 17:42:29 +0000 | [diff] [blame] | 1 | class X { }; |
| 2 | struct Y { }; |
| 3 | |
| 4 | namespace N { |
| 5 | template<typename> class Z; |
| 6 | } |
| 7 | |
Douglas Gregor | 75b7128 | 2009-09-18 17:54:00 +0000 | [diff] [blame] | 8 | namespace M { |
| 9 | class A; |
| 10 | } |
| 11 | using M::A; |
| 12 | |
Douglas Gregor | 33224e6 | 2009-09-18 17:42:29 +0000 | [diff] [blame] | 13 | namespace N { |
| 14 | class Y; |
| 15 | |
| 16 | void test() { |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 17 | class |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 18 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:10 %s -o - | FileCheck -check-prefix=CC1 %s |
Douglas Gregor | ab0b4f1 | 2010-01-13 23:24:38 +0000 | [diff] [blame] | 19 | // FIXME: the redundant Y is really annoying... it needs qualification to |
| 20 | // actually be useful. Here, it just looks redundant :( |
| 21 | // CHECK-CC1: A |
| 22 | // CHECK-CC1: M : M:: |
| 23 | // CHECK-CC1: N : N:: |
| 24 | // CHECK-CC1: X |
| 25 | // CHECK-CC1: Y |
| 26 | // CHECK-CC1: Y |
| 27 | // CHECK-CC1: Z |