Debian Codegraph @

gcc/testsuite/gcc.dg/pr25376.c

raw
1 /* PR25376. Verify that a named section is honored. */
2 /* { dg-require-named-sections "" } */
3
4 void simple (void) __attribute__((section("my_named_section")));
5 void simple (void)
6 {
7 }
8
9 /* { dg-final { scan-assembler "my_named_section" } } */
10 /* { dg-final { scan-assembler-symbol-section {simple$} {^\.?my_named_section|simple\[DS\]|^\"\.opd\"} } } */