summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array27.C
blob: 988501545f0d184f55b351acecc42a11e2b0e904 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/42058
// { dg-options "" }

struct A {};

struct B
{
  A a;
};

B b[1] = (B[]) { 0 }; // { dg-error "initializer" }