Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.6.0
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist30.C
blob: a5bdb2eda9194e9f8cb60cab699b45790390d424 [
file
] [
log
] [
blame
]
// Testcase for variadic init list deduction.
// { dg-options "-std=c++0x" }
#include
<initializer_list>
template
<
class
...
Ts
>
void
f
(
std
::
initializer_list
<
Ts
>...
ls
);
int
main
()
{
f
({
1
},{
2.0
});
}