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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp7.C
blob
02b1fc6bdad7da2a88450915253d541bf04e46e2
1
// { dg-do link }
2
// GROUPS passed templates membertemplates
3
extern "C" int printf(const char*, ...);
4
5
struct S {
6
template <class T, class U>
7
S(T, U, T);
8
};
9
10
11
template <class T, class U>
12
S::S(T t1, U u1, T t2)
13
{
14
printf("Hello, world.\n");
15
}
16
17
18
int main()
19
{
20
S s1(3, "abc", 3);
21
S s2('a', s1, 'a');
22
}