PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / no_profile_instrument_function-attr-1.c
blob0f04fb1eedc3577b1ba4ed80a7678c4ebcea1f43
1 /* { dg-require-effective-target global_constructor } */
2 /* { dg-options "-O2 -fprofile-generate -fprofile-update=single -fdump-tree-optimized" } */
4 __attribute__ ((no_profile_instrument_function))
5 int foo()
7 return 0;
10 __attribute__ ((no_profile_instrument_function))
11 int bar()
13 return 1;
16 int main ()
18 return foo ();
21 /* { dg-final { scan-tree-dump-times "__gcov0\\.main.* = PROF_edge_counter" 1 "optimized"} } */
22 /* { dg-final { scan-tree-dump-times "__gcov_indirect_call_profiler_v2" 1 "optimized" } } */
23 /* { dg-final { scan-tree-dump-times "__gcov_time_profiler_counter = " 1 "optimized" } } */
24 /* { dg-final { scan-tree-dump-times "__gcov_init" 1 "optimized" } } */