Debian Codegraph @

gcc/testsuite/gcc.dg/debug/dwarf2/noreturn-function-attribute.c

raw
1 // { dg-do compile }
2 // { dg-options "-O -std=c99 -g -dA -gno-strict-dwarf" }
3 // Expect DW_AT_noreturn once in .debug_info and once in .debug_abbrev
4 // { dg-final { scan-assembler-times "DW_AT_noreturn" 2 } }
5
6 void __attribute__ ((noreturn))
7 baz (void)
8 {
9 while (1) { ; }
10 }
11