aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/strong-using-2.C
blob: d9f99a8d1288caefa0cae0d0db17c441deb57994 (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
// PR c++/13594

// { dg-options "" }
// { dg-do compile }

namespace foo {
  inline namespace foo_impl {
    class T; // { dg-message "T" "" }
  }
}
namespace bar {
  inline namespace bar_impl {
    class T; // { dg-message "T" "" }
  }
  using namespace foo;
}
namespace baz {
  using namespace foo;
  using namespace bar;
}

foo::T *t1;
bar::T *t2;
baz::T *t3; // { dg-error "(ambiguous|does not name a type)" "" }