summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr49120.c
blob: 1a65222cfecaa538ba7dea27e01ed2eb3173c71d (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/49120 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

int
main ()
{
  int a = 1;
  int c = ({ char b[a + 1]; b[0] = 0; b[0]; });
  return c;
}