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
/
friend32.C
blob
b1f173a4623bc1b7033b55df156a74f6e36fcb93
1
// Build don't link:
2
3
template <class T, class U>
4
struct S {
5
template <class X, class Y, class Z>
6
friend X f(X, Y, Z);
7
};
8
9
template class S<int, double>;
10
template char f(char, long, short);
11
template char* f(char*, long*, short*);
12
13
template <class X, class Y, class Z>
14
X f(X x, Y, Z) {
15
return x;
16
}