aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c
blob: 8bd34b2fe299ac04e4f12da4c41348abd8a8b1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test that .debug_aranges does not have an entry for the text
   section if nothing went in there.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-gdwarf-2 -ffunction-sections -w" } */
/* { dg-final { scan-assembler-not "\\.Letext0-\\.Ltext0" } } */

int
f (void)
{
  return 1;
}