Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / repo2.C
blobb40961c1558a0ed5cb9ba71da7a14c5ad8714d84
1 // { dg-do link  }
2 // { dg-options "-frepo" }
3 // { dg-require-host-local "" }
4 // Test that collect2 isn't confused by GNU ld's "In function `foo':" message.
5 // Contributed by Jason Merrill <jason@cygnus.com>
7 // Build then link:
9 template <class T>
10 T f (T t)
12   return t;
15 template <class T>
16 T g (T t)
18   return f (t);
21 int main ()
23   int i = g (42);
26 // { dg-final { cleanup-repo-files } }