2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / template12.C
blob32dfe0f2c87df8e10ee5a0d76d16e23f4c2a78ae
1 // { dg-do assemble  }
2 // Templates can be defined outside of the namespace if the have been declared
3 // inside
4 namespace bar
6   template <typename T>
7   T const foo(T const &);
8   template<> const int foo<int>(int const &);
11 template <typename T>
12 T const
13 bar::foo(T const &a)
15   return a;
18 template<> const int bar::foo<int>(int const &){return 0;}