Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist28.C
blob: decd36eea7b3e9663695cd041a87671087b8d1a6 [
file
] [
log
] [
blame
]
// PR c++/42060
// { dg-do compile { target c++11 } }
void
foo
()
{
int
a
[
1
];
throw
a
=
{};
// { dg-error "11:assigning to an array from an initializer list" }
}