Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / strong-using-1.C
bloba16fd6a50b973b81e50dbec175309326322e5a6b
1 // PR c++/13594 (secondary)
3 // { dg-do compile }
5 namespace fool {
6   namespace foo {
7     template <class T> void swap(T, T);
8   }
9   using namespace foo __attribute__((strong));
10   template <class T> void swap(T);
13 int main() {
14   // we used to fail to look up the associated namespace here
15   fool::swap(1, 1);