libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr25521.c
blobcd1b90085e11a80aba3e59e1700e51eeb07ff758
1 /* PR middle-end/25521 - place `const volatile' objects in read-only
2 sections.
4 { dg-do compile }
5 { dg-require-effective-target elf }
6 { dg-skip-if "" { ! const_volatile_readonly_section } } */
8 const volatile int foo = 30;
10 /* { dg-final { scan-assembler {.section C,} { target { rx-*-* } } } } */
11 /* { dg-final { scan-assembler-symbol-section {^_?foo$} {^\.(const|s?rodata)} { target { ! "rx-*-*" } } } } */