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" }
}