view gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-require-effective-target global_constructor } */
/* { dg-options "-O2 -fprofile-generate -fprofile-update=single -fdump-tree-optimized" } */

__attribute__ ((no_profile_instrument_function))
int foo()
{
  return 0;
}

__attribute__ ((no_profile_instrument_function))
int bar()
{
  return 1;
}

int main ()
{
  return foo ();
}

/* { dg-final { scan-tree-dump-times "__gcov0\\.main.* = PROF_edge_counter" 1 "optimized"} } */
/* { dg-final { scan-tree-dump-times "__gcov_indirect_call_profiler_v" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "__gcov_time_profiler_counter = " 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "__gcov_init" 1 "optimized" } } */