OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fd7c02435aa629f3e6a693452ada619c07725ace
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
repo2.C
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>
5
6
// Build then link:
7
8
template <class T>
9
T f (T t)
10
{
11
return t;
12
}
13
14
template <class T>
15
T g (T t)
16
{
17
return f (t);
18
}
19
20
int main ()
21
{
22
int i = g (42);
23
}