summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/pr51410.c
blob: 957c152b4a09c6f308afba69eb911cd6733319cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR debug/51410 */
/* { dg-do compile } */
/* { dg-options "-O0 -gdwarf-2 -dA -fno-merge-debug-strings" } */

int x;

int
foo (void)
{
  return x;
}

/* { dg-final { scan-assembler-times "\\(DIE\[^\\r\\n\]*DW_TAG_variable\\)" 1 } } */