Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / strong-using-2.C
blob21e47cba014b39dffc9353eede793106f40c3304
1 // PR c++/13594
3 // { dg-do compile }
5 namespace foo {
6   namespace foo_impl {
7     class T; // { dg-error "T" "" }
8   }
9   using namespace foo_impl __attribute__((strong));
11 namespace bar {
12   namespace bar_impl {
13     class T; // { dg-error "T" "" }
14   }
15   using namespace bar_impl __attribute__((strong));
16   using namespace foo;
18 namespace baz {
19   using namespace foo;
20   using namespace bar;
23 foo::T *t1;
24 bar::T *t2;
25 baz::T *t3; // { dg-error "(ambiguous|expected|extra)" "" }