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
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
instantiate6.C
blob
a1223fc5d8581a9c8a2ffdff2933bdeb0a7c0840
1
// { dg-do link }
2
// { dg-options "-frepo" }
3
// { dg-require-host-local "" }
4
// Build then link:
5
6
// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
7
8
template <class T>
9
class foo{
10
public:
11
void g();
12
void h();
13
};
14
15
template <class T>
16
void foo<T>::g() {
17
h();
18
}
19
20
template <class T>
21
void foo<T>::h() {
22
}
23
24
int main() {
25
foo<int> f;
26
f.g();
27
}
28
29
// { dg-final { cleanup-repo-files } }