Debian Codegraph @

gcc/testsuite/gcc.dg/init-bad-7a.c

raw
1 /* PR c/37724 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4
5 struct f
6 {
7 int *a;
8 };
9
10 char b[10];
11 struct f g = {b}; /* { dg-error "initialization of 'int \\*' from incompatible pointer type" } */
12 /* { dg-note "near initialization for" "" { target *-*-* } .-1 } */