Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist28.C
blobdecd36eea7b3e9663695cd041a87671087b8d1a6
1 // PR c++/42060
2 // { dg-do compile { target c++11 } }
4 void foo()
6   int a[1];
7   throw a = {}; // { dg-error "11:assigning to an array from an initializer list" }