Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist26.C
blob: 045147c488239622fe3e1d47b94a296a54a479e4 [
file
] [
log
] [
blame
]
// PR c++/42059
// { dg-do compile { target c++11 } }
// { dg-options "" }
void
foo
(
int
i
)
{
int
a
[
i
];
a
=
{
};
// { dg-error "5:assigning to an array from an initializer list" }
}