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
new tests
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit65.C
1
extern "C" void abort ();
2
3
template <class T> void f ()
4
{
5
abort ();
6
}
7
8
template <> void f<char> ()
9
{
10
abort ();
11
}
12
13
template <class T> void f (int)
14
{
15
abort ();
16
}
17
18
template <> void f<char> (int)
19
{
20
}
21
22
template <class T> class C
23
{
24
friend void f<char> (int);
25
public:
26
void ff () { f<char> (0); }
27
};
28
29
int main ()
30
{
31
C<int> c;
32
c.ff();
33
}