// Build don't link:
// Special g++ Options:
-// crash test - XFAIL
class Pooled
{
// Submitted by Melissa O'Neill <oneill@cs.sfu.ca>
// the vtable of Foo<int> wouldn't be generated
-// excess errors test - XFAIL *-*-*
-
template <typename A>
struct Foo {
virtual void foo() {}
// Additional sources: instantiate5.cc instantiate5-main.cc
-// excess errors test - XFAIL *-*-*
-
// `global constructors' are given the same name, based on foo(), on
// both translation units, which is wrong, because it must be possible
// to define template functions in multiple translation units, as long
// Build don't link:
-// crash test - XFAIL *-*-*
-
template <class T> void foo();
void (*bar)() = foo<void>;