Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend68.C
blob: fa34d2c30d5475856a301c4c978e4abdd27b9c93 [
file
] [
log
] [
blame
]
// { dg-do compile }
template
<class>
struct
S
{
S
();
friend
int
f
(
S x
)
{
return
x
.
i
+
x
.
j
;
}
template
<
class
T
>
friend
int
g
(
S x
,
T
)
{
return
x
.
i
+
x
.
j
;
}
private
:
int
i
;
protected
:
int
j
;
};