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
/
memtemp25.C
blob
6c196f5d4d64cd2480fa484898dca8f74154dfba
1
// { dg-do link }
2
// GROUPS passed templates membertemplates
3
extern "C" int printf(const char*, ...);
4
5
template <class X>
6
struct S
7
{
8
template <class U>
9
void f(U u) { printf ("%d\n", sizeof (U)); }
10
11
int i[4];
12
};
13
14
15
int main()
16
{
17
S<char*> s;
18
s.f(3);
19
s.f(s);
20
}