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
/
memtemp26.C
blob
3eb5f287dd8829bdd46f8f765f0c6a321ea01be5
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);
10
11
int i[4];
12
};
13
14
15
template <class X>
16
template <class U>
17
void S<X>::f(U u)
18
{
19
printf ("%d\n", sizeof (U));
20
}
21
22
23
int main()
24
{
25
S<char*> s;
26
s.f(3);
27
s.f(s);
28
}