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

struct A;

struct B
{
  A a; // { dg-error "incomplete type" }
};

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