gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-2.c
raw| 1 | /* { dg-require-effective-target global_constructor } */ |
| 2 | /* { dg-options "-O2 -fprofile-generate -fprofile-update=single -fdump-tree-optimized" } */ |
| 3 | |
| 4 | __attribute__ ((no_profile_instrument_function)) |
| 5 | int foo() |
| 6 | { |
| 7 | return 0; |
| 8 | } |
| 9 | |
| 10 | int bar() |
| 11 | { |
| 12 | return foo(); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump-not " = foo \\(\\)" "optimized"} } */ |