aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-bad-7.c
blob: de5e570978ccf693dad75f09d2a6d50bb4f784a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/37724 */
/* { dg-do compile } */
/* { dg-options "-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" } */