Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/noreturn-function.C

raw
1 // { dg-do compile }
2 // { dg-options "-O -std=c++11 -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 class Foo
7 {
8 int i;
9 void bar [[noreturn]] (int j);
10 };
11
12 void
13 Foo::bar (int j)
14 {
15 while (1) { ; }
16 }