OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / strong-using-2.C
1 // PR c++/13594
2
3 // { dg-do compile }
4
5 namespace foo {
6   namespace foo_impl {
7     class T; // { dg-error "T" "" }
8   }
9   using namespace foo_impl __attribute__((strong));
10 }
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;
17 }
18 namespace baz {
19   using namespace foo;
20   using namespace bar;
21 }
22
23 foo::T *t1;
24 bar::T *t2;
25 baz::T *t3; // { dg-error "(ambiguous|expected|extra)" "" }