Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist30.C
blob: eb78f3c1cdbc790d9cf942a8a364872e5d5074b5 [
file
] [
log
] [
blame
]
// Testcase for variadic init list deduction.
// { dg-do compile { target c++11 } }
#include
<initializer_list>
template
<
class
...
Ts
>
void
f
(
std
::
initializer_list
<
Ts
>...
ls
);
int
main
()
{
f
({
1
},{
2.0
});
}