aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inline-ns3.C
blob: 7e24e806e7c811b8faf99a90522f7db30b3eabca (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
// { dg-do compile { target c++11 } }

namespace C
{
  void f();
}

namespace B
{
  using namespace C;

  inline namespace B1
  {
    void f();
  }
}

namespace A
{
  using namespace B;
}

int main()
{
  A::f();
}