blob: 03fc0fda2ec5424ca0271e2a37396894e4a283b9 [file] [log] [blame]
Douglas Gregor33224e62009-09-18 17:42:29 +00001class X { };
2struct Y { };
3
4namespace N {
5 template<typename> class Z;
6}
7
Douglas Gregor75b71282009-09-18 17:54:00 +00008namespace M {
9 class A;
10}
11using M::A;
12
Douglas Gregor33224e62009-09-18 17:42:29 +000013namespace N {
14 class Y;
15
16 void test() {
Douglas Gregorb657f112009-09-22 21:11:38 +000017 class
Daniel Dunbara5728872009-12-15 20:14:24 +000018 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:10 %s -o - | FileCheck -check-prefix=CC1 %s
Douglas Gregorab0b4f12010-01-13 23:24:38 +000019 // 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