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

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

  return a[0];
}