Debian Codegraph @

gcc/testsuite/gcc.dg/pr25521.c

raw
1 /* PR middle-end/25521 - place `const volatile' objects in read-only
2 sections.
3
4 { dg-do compile }
5 { dg-require-effective-target elf }
6 { dg-skip-if "" { ! const_volatile_readonly_section } } */
7
8 const volatile int foo = 30;
9
10 /* { dg-final { scan-assembler {.section C,} { target { rx-*-* } } } } */
11 /* { dg-final { scan-assembler-symbol-section {^_?foo$} {^\.(const|s?rodata)} { target { ! "rx-*-*" } } } } */