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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
repo2.C
blob
c05fa108136048a0d313590ed4720be1f5a7ece9
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
}
24
25
// { dg-final { cleanup-repo-files } }