]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/initlist26.C
typeck.c (cp_build_indirect_ref_1): Add location_t parameter and use it in error...
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist26.C
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 }