aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr85252.c
blob: 9bd4d48d618bd9ac9a3bfdebb4893787afbdd59c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR debug/85252 */
/* { dg-do compile } */

void
foo (void)
{
  static char a[0] = "";
  static char b[0] = "b";	/* { dg-warning "initializer-string for array of 'char' is too long" } */
  static char c[1] = "c";
  static char d[1] = "de";	/* { dg-warning "initializer-string for array of 'char' is too long" } */
}