1  /* Test that .debug_aranges and .debug_ranges do not have an entry for the
       2     text section if nothing went in there.  */
       3  /* Origin: Joseph Myers <joseph@codesourcery.com> */
       4  /* { dg-do compile } */
       5  /* { dg-require-effective-target function_sections } */
       6  /* { dg-options "-gdwarf -ffunction-sections -w -dA" } */
       7  /* { dg-final { scan-assembler-not "\\.Letext0-\\.Ltext0" } } */
       8  /* { dg-final { scan-assembler-not "\\.Ltext0\[^\n\r\]*Offset 0x0" } } */
       9  /* { dg-final { scan-assembler "DW_AT_ranges" } } */
      10  
      11  int
      12  f (void)
      13  {
      14    return 1;
      15  }