Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic179.C
blob: f04d3f753ca3f34e2c43793734349c2da31aad28 [
file
] [
log
] [
blame
]
// PR c++/94628
// { dg-do compile { target c++11 } }
int
f
(
int
,
int
);
int
f
(
int
);
template
<
class
...
Args
>
auto
select
(
Args
...
args
)
->
decltype
(
f
(
args
...))
{
if
(
sizeof
...(
Args
)
>
1
)
return
select
<char>
(
7
);
else
return
0
;
}
int
a
=
select
(
0
,
1
);