gcc/testsuite/gcc.target/i386/mcount_pic.c
raw| 1 | /* PR target/63534 */ |
| 2 | /* Check correct mcount generation. */ |
| 3 | /* { dg-do run } */ |
| 4 | /* { dg-require-effective-target fpic } */ |
| 5 | /* { dg-require-effective-target ia32 } */ |
| 6 | /* { dg-require-profiling "-pg" } */ |
| 7 | /* { dg-options "-O2 -fpic -pg -save-temps" } */ |
| 8 | |
| 9 | int main () |
| 10 | { |
| 11 | return 0; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler "mcount" } } */ |
| 15 | /* { dg-final { scan-assembler "get_pc_thunk" } } */ |
| 16 | /* { dg-final { cleanup-profile-file } } */ |