Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);