summaryrefslogtreecommitdiffstats
path: root/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp
blob: 00d109e67516b3f6ffe0d9085ca2b2e92b24226d (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
26
27
28
29
30
31
32
33
// RUN: clang -fsyntax-only -verify %s

namespace test0 {
  namespace ns0 {
    class tag;
    int tag();
  }

  namespace ns1 {
    using ns0::tag;
  }

  namespace ns2 {
    using ns0::tag;
  }

  using ns1::tag;
  using ns2::tag;
}

// PR 5752
namespace test1 {
  namespace ns {
    void foo();
  }

  using ns::foo;
  void foo(int);

  namespace ns {
    using test1::foo;
  }
}
OpenPOWER on IntegriCloud