Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
template3.C
blob: 271dab0f39eaae9c2b35e410d792e38654fe0da6 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed templates
template
<
class
R
,
class
T1
=
R
,
class
T2
=
T1
>
struct
plus
{
R
operator
()(
const
T1
&
x
,
const
T2
&
y
)
const
{
return
x
+
y
;
}
};
int
main
()
{
plus
<
int
>
p
;
return
0
;
}