2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / repo2.C
blobfd7c02435aa629f3e6a693452ada619c07725ace
1 // { dg-do link  }
2 // { dg-options "-frepo" }
3 // Test that collect2 isn't confused by GNU ld's "In function `foo':" message.
4 // Contributed by Jason Merrill <jason@cygnus.com>
6 // Build then link:
8 template <class T>
9 T f (T t)
11   return t;
14 template <class T>
15 T g (T t)
17   return f (t);
20 int main ()
22   int i = g (42);