summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/init-bad-7.c
blob: 738ed605060d80c88b7eba28b50ddaa38eecac1a (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 from incompatible pointer type|near initialization for" } */