brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · 7d5468d Raw
28 lines · cpp
1class X { };2struct Y { };3 4namespace N {5  template<typename> class Z;6}7 8namespace M {9  class A;10}11using M::A;12 13namespace N {14  class Y;15  16  void test() {17    class 18    // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):11 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s19    // FIXME: the redundant Y is really annoying... it needs qualification to 20    // actually be useful. Here, it just looks redundant :(21    // CHECK-CC1: A22    // CHECK-CC1: M : M::23    // CHECK-CC1: N : N::24    // CHECK-CC1: X25    // CHECK-CC1: Y26    // CHECK-CC1: Y27    // CHECK-CC1: Z28