aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-bad-7.c
blob: caa8c783d65b919e84d14b47a3abb86617b85b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/37724 */
/* { dg-do compile } */
/* { dg-options "-fpermissive -std=gnu99 -pedantic" } */

struct f
{
  int *a;
};

char b[10];
struct f g = {b}; /* { dg-warning "initialization of 'int \\*' from incompatible pointer type|near initialization for" } */