comparison gcc/testsuite/gcc.dg/init-bad-7.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR c/37724 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -pedantic" } */
4
5 struct f
6 {
7 int *a;
8 };
9
10 char b[10];
11 struct f g = {b}; /* { dg-warning "initialization of 'int \\*' from incompatible pointer type|near initialization for" } */