blob: d9e786a8d86bc26fa8a57f89a8677f1e8c67fbf5 [file] [log] [blame]
/* Test diagnostics for duplicate field names involving anonymous
struct or union as first field. PR 46889. */
/* { dg-do compile } */
/* { dg-options "" } */
struct foo {
union {
struct {
unsigned long time_stamp;
};
struct {
int *page;
};
};
int *page; /* { dg-error "duplicate member" } */
};