brintos

brintos / llvm-project-archived public Read only

0
0
Text · 430 B · deb90c4 Raw
26 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3namespace PR4441 {4  namespace A {5      struct B { };6      void operator+(B,B);7  }8 9  using A::operator+;10} // namespace PR444111 12namespace qualified_name {13  namespace XXX {14    struct A {15      using type = int;16    };17  }18 19  namespace YYY {20    using XXX::A;21  }22 23  YYY::A::type x = nullptr;24  // expected-error@-1 {{variable of type 'YYY::A::type'}}25} // namespace qualifed_name26