blob: 13a43ec27e5ce78e0471b32fee26b4dc6e6a3e9d [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target mfentry } */
/* { dg-require-profiling "-pg" } */
/* { dg-options "-pg -mfentry -mrecord-mcount -mfentry-section=foo" } */
/* { dg-final { scan-assembler "section.*foo" } } */
/* { dg-final { scan-assembler "section.*bar" } } */
int func(int a)
{
return a+1;
}
__attribute__((fentry_section("bar")))
int func2(int a)
{
return a+1;
}