Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist85.C
blob: 0b5ce497e491c172bd202fd7a86e6f299bd93f20 [
file
] [
log
] [
blame
]
// PR c++/60848
// { dg-do compile { target c++11 } }
namespace
std
{
struct
initializer_list
{};
// { dg-error "declaration" }
}
void
foo
(
std
::
initializer_list
&);
void
f
()
{
foo
({
1
,
2
});
// { dg-error "invalid initialization" }
}