summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist28.C
blob: d1df7cb00440442a4ea39bd0adc1c0628475afb0 (plain)
1
2
3
4
5
6
7
8
// PR c++/42060
// { dg-options "-std=c++0x" }

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