blob: b40961c1558a0ed5cb9ba71da7a14c5ad8714d84 [file] [log] [blame]
// { dg-do link }
// { dg-options "-frepo" }
// { dg-require-host-local "" }
// Test that collect2 isn't confused by GNU ld's "In function `foo':" message.
// Contributed by Jason Merrill <jason@cygnus.com>
// Build then link:
template <class T>
T f (T t)
{
return t;
}
template <class T>
T g (T t)
{
return f (t);
}
int main ()
{
int i = g (42);
}
// { dg-final { cleanup-repo-files } }