1 /* Test for diagnostics about excess initializers when using a macro
2 defined in a system header:
3 c/71115 - Missing warning: excess elements in struct initializer. */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
6 /* { dg-require-effective-target int32plus } */
12 NULL
/* { dg-warning "excess elements|near init" } */
17 NULL
/* { dg-warning "excess elements|near init" } */
24 NULL
/* { dg-warning "excess elements|near init" } */
27 struct __attribute__ ((designated_init
)) S2
{
30 NULL
/* { dg-warning "positional initialization|near init" } */
37 NULL
/* { dg-warning "excess elements|near init" } */
40 int __attribute__ ((vector_size (16))) ivec
= {
42 NULL
/* { dg-warning "excess elements|near init" } */
47 NULL
/* { dg-warning "excess elements|near init" } */