aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr49120.c
blob: 50993e69dfd2b1ca428f0db93d365a4cd56f4d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c/49120 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
/* { dg-require-effective-target alloca } */

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