aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/fentryname1.c
blob: a9d1c727e86d8983fbf735d1664859ed467b6f6b (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 -mfentry-name=foo" } */
/* { dg-final { scan-assembler "call.*foo" } } */
/* { dg-final { scan-assembler "call.*bar" } } */

int func(int a)
{
  return a+1;
}

__attribute__((fentry_name("bar")))
int func2(int a)
{
  return a+1;
}