PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pure-code / ffunction-sections.c
blob26fe38c05295b70ccc35ed900d41b34aae2c87a8
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-fpic" "-fPIC" } { "" } } */
3 /* { dg-options "-ffunction-sections -mpure-code" } */
4 #include <limits.h>
6 char * foo (void)
8 return "foo";
11 unsigned int bar (unsigned int b)
13 return UINT_MAX - b;
16 /* { dg-final { scan-assembler {\.section\t\.text\.foo[^\n]*\"0x20000006\"} } } */
17 /* { dg-final { scan-assembler {\.section\t\.text\.bar[^\n]*\"0x20000006\"} } } */