aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/using-decl.cpp
blob: deb90c4dcc93efd70247ac995b69bf07570ed36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: %clang_cc1 -fsyntax-only -verify %s

namespace PR4441 {
  namespace A {
      struct B { };
      void operator+(B,B);
  }

  using A::operator+;
} // namespace PR4441

namespace qualified_name {
  namespace XXX {
    struct A {
      using type = int;
    };
  }

  namespace YYY {
    using XXX::A;
  }

  YYY::A::type x = nullptr;
  // expected-error@-1 {{variable of type 'YYY::A::type'}}
} // namespace qualifed_name