New test case.

From-SVN: r28674
This commit is contained in:
Martin v. Löwis 1999-08-11 18:47:46 +00:00
parent 0486d4a1b3
commit 2c5a7dc197

View File

@ -0,0 +1,21 @@
// Build don't link:
// Templates defined outside must be declared inside
namespace bar
{
template<class T>class X;
}
template <typename T>
T const
bar::foo(T const &a)
{ // ERROR - not declared in bar - XFAIL *-*-*
return a;
}
template<> const int bar::foo<int>(int const &)
{ // ERROR - not declared in bar - XFAIL *-*-*
return 0;
}
template<class T,class U>
class bar::X{}; // ERROR - does not match declaration - XFAIL *-*-*