view gcc/testsuite/gcc.target/arm/pure-code/ffunction-sections.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-fpic" "-fPIC" } { "" } } */
/* { dg-options "-ffunction-sections -mpure-code" } */
#include <limits.h>

char * foo (void)
{
  return "foo";
}

unsigned int bar (unsigned int b)
{
  return UINT_MAX - b;
}

/* { dg-final { scan-assembler {\.section\t\.text\.foo[^\n]*\"0x20000006\"} } } */
/* { dg-final { scan-assembler {\.section\t\.text\.bar[^\n]*\"0x20000006\"} } } */