blob: a9c0efb3fa87fe5b5560fc02d555e6d54a7c5f79 [file] [log] [blame]
/* { 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" } } */