gcc/testsuite/g++.old-deja/g++.ns/template16.C
raw| 1 | // { dg-do assemble } |
| 2 | // Test that pushing into a namespace for a definition doesn't affect |
| 3 | // template instantiations. |
| 4 | |
| 5 | |
| 6 | namespace N { |
| 7 | template <class T> void f () { } |
| 8 | template <class T> struct A { friend void f<T>(); }; |
| 9 | } |
| 10 | |
| 11 | namespace M { |
| 12 | struct B; |
| 13 | } |
| 14 | |
| 15 | struct M::B: public N::A<int> { }; |