1// { dg-do link  }
2// { dg-options "-frepo" }
3// { dg-require-host-local "" }
4// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
5
6// Test that collect2 isn't confused by GNU ld's "In function `foo':" message.
7// Contributed by Jason Merrill <jason@cygnus.com>
8
9// Build then link:
10
11template <class T>
12T f (T t)
13{
14  return t;
15}
16
17template <class T>
18T g (T t)
19{
20  return f (t);
21}
22
23int main ()
24{
25  int i = g (42);
26}
27
28// { dg-final { cleanup-repo-files } }
29