summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist26.C
blob: bb28bdbd9b3ccbf55d52679fba51a2d3c0bbd686 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/42059
// { dg-do compile }
// { dg-options "-std=gnu++0x" }

void
foo (int i)
{
  int a[i];
  a = { }; // { dg-error "assign" }
}