summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/dwarf2/vla1.c
blob: e814bf56844b582c4b6c657ca9a2f23164c57b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR debug/42800
// { dg-options "-gdwarf-2 -dA" }
// { dg-final { scan-assembler "DW_AT_upper_bound" } }

int
f (int i)
{
  char a[i];

  return a[0];
}