aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c
blob: c6aada4611c8186df94ba6366e5984d8ff2739da (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" } */
/* { dg-final { scan-assembler-not "\\.Letext0-\\.Ltext0" } } */

int
f (void)
{
  return 1;
}