Debian Codegraph @

gcc/testsuite/g++.dg/abi/noreturn1.C

raw
1 // Test that attribute noreturn is not part of the mangled name.
2 // { dg-options -fabi-version=0 }
3
4 void baz (const char *fmt, ...);
5
6 // { dg-final { scan-assembler "_Z3barPFvPKczE" } }
7 void bar (void (*baz) (const char *fmt, ...)
8 __attribute__ ((noreturn, format (printf, 1, 2))));
9
10 void
11 foo ()
12 {
13 bar (&baz);
14 }