blob: da66d7543b3513f1804c0682b5d967c94174a7aa [file] [log] [blame]
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
template <class T>
int g (T);
int j = g (3);
template <class T>
inline T f (T)
{
return 2;
}
template <class T>
struct S
{
static const int i;
};
template <class T>
const int S<T>::i = f (3);
template <class T>
int g (T)
{
return S<double>::i;
}