OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cp:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp28.C
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
}