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
PR testsuite/25241
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit64.C
1
// { dg-do run }
2
extern "C" void abort ();
3
4
template <class T> void f ()
5
{
6
abort ();
7
}
8
9
template <> void f<char> ()
10
{
11
}
12
13
template <class T> class C
14
{
15
friend void f<char> ();
16
public:
17
void ff () { f<char> (); }
18
};
19
20
int main ()
21
{
22
C<int> c;
23
c.ff();
24
}