gcc/testsuite/gcc.target/i386/fentryname1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target mfentry } */ |
| 3 | /* { dg-require-profiling "-pg" } */ |
| 4 | /* { dg-options "-pg -mfentry -mfentry-name=foo" } */ |
| 5 | /* { dg-final { scan-assembler "call.*foo" } } */ |
| 6 | /* { dg-final { scan-assembler "call.*bar" } } */ |
| 7 | |
| 8 | int func(int a) |
| 9 | { |
| 10 | return a+1; |
| 11 | } |
| 12 | |
| 13 | __attribute__((fentry_name("bar"))) |
| 14 | int func2(int a) |
| 15 | { |
| 16 | return a+1; |
| 17 | } |