Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
koenig8.C
blob: 5a49a7066daa186615c92756f7c0878e4830d3b6 [
file
] [
log
] [
blame
]
// PR c++/40740
template
<
class
T
>
T addsome
(
T v
)
{
return
v
+
1
;
}
int
addsome
(
int
v
)
{
return
v
+
2
;
}
int
main
()
{
int
i
=
0
;
if
(
addsome
(
i
)
!=
2
)
return
1
;
if
(
addsome
<>(
i
)
!=
1
)
return
2
;
return
0
;
}