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
/
memtemp29.C
blob
c14ca235772682d6f7800552bdb2d173b37dadfb
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
template <class U>
12
void g(U U);
13
14
int c[16];
15
};
16
17
template <class X>
18
template <class U>
19
void S<X>::f(U u)
20
{ printf ("In S::f(U)\n"); g(u); }
21
22
template <class X>
23
template <class U>
24
void S<X>::g(U u)
25
{ printf ("In S::g(U)\n"); }
26
27
int main()
28
{
29
S<char*> s;
30
s.f(3);
31
s.f("adf");
32
}