aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/fentryname2.c
blob: 13a43ec27e5ce78e0471b32fee26b4dc6e6a3e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { 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;
}