blob: 235cdf0deb910fc3e9254fcfdc9b0ac83f643dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do compile }
// { dg-options "" }
// PR C++/24138
void foo()
{
typedef struct {
unsigned char dir;
int data[0];
} yanito;
static const yanito horse = { 1, { 2, 3 } }; // { dg-error "too many" }
}
|