summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr59351.c
blob: 384058f40418af15c299613b6c7494b52e9cc118 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-std=c99 -Wpedantic" } */

unsigned int
foo (void)
{
  return sizeof ((int[]) {}); /* { dg-warning "ISO C forbids empty initializer braces" } */
}