OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / initlist26.C
1 // PR c++/42059
2 // { dg-do compile }
3 // { dg-options "-std=gnu++0x" }
4
5 void
6 foo (int i)
7 {
8   int a[i];
9   a = { }; // { dg-error "assign" }
10 }