Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/embed-11.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=c23" } */
3
4 struct __attribute__((designated_init)) S {
5 int a, b, c, d;
6 unsigned char e[128];
7 };
8
9 struct S s = { .a = 1, .b =
10 #embed __FILE__ limit(128) /* { dg-warning "positional initialization of field in 'struct' declared with 'designated_init' attribute" } */
11 }; /* { dg-message "near initialization" "" { target *-*-* } .-1 } */