gcc/testsuite/g++.dg/cpp0x/inline-ns6.C
raw| 1 | // PR c++/13594 (secondary) |
| 2 | |
| 3 | // { dg-options "" } |
| 4 | // { dg-do compile } |
| 5 | |
| 6 | namespace fool { |
| 7 | inline namespace foo { |
| 8 | template <class T> void swap(T, T); |
| 9 | } |
| 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 | } |