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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp28.C
blob
37e79c8cfef231907207180cf00002bb9a276f2c
1
extern "C" void abort();
2
3
int k;
4
5
template <class X>
6
struct S
7
{
8
template <class U>
9
void f(U u)
10
{ ++k; g(u); }
11
12
template <class U>
13
void g(U u)
14
{ ++k; }
15
16
int c[16];
17
};
18
19
int main()
20
{
21
S<char*> s;
22
s.f(3);
23
s.f("adf");
24
25
if (k != 4)
26
abort();
27
}