repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
repo2.C
blob
b40961c1558a0ed5cb9ba71da7a14c5ad8714d84
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>
6
7
// Build then link:
8
9
template <class T>
10
T f (T t)
11
{
12
return t;
13
}
14
15
template <class T>
16
T g (T t)
17
{
18
return f (t);
19
}
20
21
int main ()
22
{
23
int i = g (42);
24
}
25
26
// { dg-final { cleanup-repo-files } }