aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/pr96383-1.c
blob: a9c0efb3fa87fe5b5560fc02d555e6d54a7c5f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-g -gdwarf -dA" } */

extern void foo (int);
extern void unusedbar (int);

int main()
{
  foo (1);
}

/* We want subprogram DIEs for both foo and main and a DIE for
   the formal parameter of foo.  We do not want a DIE for
   unusedbar.  */
/* { dg-final { scan-assembler-times "DW_TAG_subprogram" 4 } } */
/* { dg-final { scan-assembler-times "DW_TAG_formal_parameter" 2 } } */
/* { dg-final { scan-assembler-not "unusedbar" } } */