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
/
memtemp14.C
blob
015aa25dcd16a85a829293ad6453c0fc9a93a639
1
// { dg-do link }
2
// GROUPS passed templates membertemplates
3
extern "C" int printf (const char *, ...);
4
5
template <class T>
6
struct S
7
{
8
template <class U, class V>
9
void foo(U, V);
10
};
11
12
13
template <class T>
14
template <class U, class V>
15
void S<T>::foo(U, V)
16
{
17
printf("Hello, world.\n");
18
}
19
20
21
int main()
22
{
23
S<int> s;
24
s.foo(3, 3);
25
s.foo("hello", s);
26
27
S<char*> s2;
28
s2.foo(3, 3);
29
s2.foo("hello", s);
30
}