Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist26.C

raw
1 // PR c++/42059
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4
5 void
6 foo (int i)
7 {
8 int a[i];
9 a = { }; // { dg-error "5:assigning to an array from an initializer list" }
10 }