summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr41470.c
blob: 1c029b481bf25892b5ccbb6015ba472fb7adcff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-fexceptions" } */
void *
af (void *a)
{
  return a;
}
void
bf (void)
{
  void *p;
  {
    int i = 1;
    char v[i];
    p = af (v);
  }
  cf (p);
}