New test case

From-SVN: r28650
This commit is contained in:
Martin v. Löwis 1999-08-10 16:59:59 +00:00
parent d82d65d886
commit fbb7246658

View File

@ -0,0 +1,19 @@
// Build don't link:
// Templates can be defined outside of the namespace if the have been declared
// inside
namespace bar
{
template <typename T>
T const foo(T const &);
template<> const int foo<int>(int const &);
}
template <typename T>
T const
bar::foo(T const &a)
{
return a;
}
template<> const int bar::foo<int>(int const &){return 0;}