summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/inline-ns3.C
blob: 7c9d6b9b546989006d0c5f0f125e05af714f1395 (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-options -std=c++0x }

namespace C
{
  void f();
}

namespace B
{
  using namespace C;

  inline namespace B1
  {
    void f();
  }
}

namespace A
{
  using namespace B;
}

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