1  /* { dg-do compile } */
       2  /* { dg-options "-g -O2 -gdwarf -dA" } */
       3  
       4  extern void foo (int);
       5  extern void unusedbar (int);
       6  
       7  int main()
       8  {
       9    foo (1);
      10  }
      11  
      12  /* We want subprogram DIEs for both foo and main and a DIE for
      13     the formal parameter of foo.  We do not want a DIE for
      14     unusedbar.  */
      15  /* { dg-final { scan-assembler-times "DW_TAG_subprogram" 4 } } */
      16  /* { dg-final { scan-assembler-times "DW_TAG_formal_parameter" 2 } } */
      17  /* { dg-final { scan-assembler-not "unusedbar" } } */