2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / template3.C
blobd6b51a91d69073145750e4a28f905e7b5c41b919
1 // { dg-do run  }
2 //Check instantiation of templates outside their namespace
3 namespace A{
4 template <class T>void g(){}
5 template <class T> struct B {
6   B(){
7    f();
8   }
9   void f()
10   {
11     g<T>();
12   }
16 template class A::B<int>;
17 A::B<int> s;
19 int main()
21   return 0;