2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / init-bad-7.c
blob738ed605060d80c88b7eba28b50ddaa38eecac1a
1 /* PR c/37724 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -pedantic" } */
5 struct f
7 int *a;
8 };
10 char b[10];
11 struct f g = {b}; /* { dg-warning "initialization from incompatible pointer type|near initialization for" } */