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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
instantiate1.C
blob
e44b063539a8d48058d65d974d7b983022c25f98
1
// { dg-do assemble }
2
3
template <class T>
4
void f(T t) {}
5
6
template void f<int>(int);
7
template void f<>(long);
8
9
template <class T>
10
struct S
11
{
12
void bar(int) {}
13
14
template <class U>
15
void baz(U u) {}
16
};
17
18
19
template struct S<char>;
20
template void S<int>::bar(int);
21
template void S<double>::baz<short>(short);
22
template void S<long>::baz<>(char);