gcc/testsuite/gcc.dg/profile-info-section.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-skip-if "profile-info-section" { powerpc-ibm-aix* } } */ |
| 3 | /* { dg-options "-fprofile-arcs -fprofile-info-section -fdump-tree-optimized" } */ |
| 4 | |
| 5 | int foo() |
| 6 | { |
| 7 | return 0; |
| 8 | } |
| 9 | |
| 10 | int bar() |
| 11 | { |
| 12 | return 1; |
| 13 | } |
| 14 | |
| 15 | int main () |
| 16 | { |
| 17 | return foo (); |
| 18 | } |
| 19 | |
| 20 | /* { dg-final { scan-tree-dump-not "__gcov_init" "optimized" } } */ |
| 21 | /* { dg-final { scan-tree-dump-not "__gcov_exit" "optimized" } } */ |
| 22 | /* { dg-final { scan-assembler "\.gcov_info" } } */ |