OSDN Git Service

2005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / strong-using-1.C
1 // PR c++/13594 (secondary)
2
3 // { dg-do compile }
4
5 namespace foo {
6   template <class T> void swap(T, T);
7 }
8 namespace fool {
9   using namespace foo __attribute__((strong));
10   template <class T> void swap(T);
11 }
12
13 int main() {
14   // we used to fail to look up the associated namespace here
15   fool::swap(1, 1);
16 }