1 /* { dg-do compile } */
2 /* { dg-require-effective-target mfentry } */
3 /* { dg-require-profiling "-pg" } */
4 /* { dg-options "-pg -mfentry -mrecord-mcount -mfentry-section=foo" } */
5 /* { dg-final { scan-assembler "section.*foo" } } */
6 /* { dg-final { scan-assembler "section.*bar" } } */
7
8 int func(int a)
9 {
10 return a+1;
11 }
12
13 __attribute__((fentry_section("bar")))
14 int func2(int a)
15 {
16 return a+1;
17 }