view gcc/testsuite/gcc.dg/pr78333.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do link } */
/* { dg-options "-finstrument-functions" } */

/* Add empty implementations of __cyg_profile_func_enter() and
   __cyg_profile_func_exit() to avoid problems on non-glibc
   systems.  */
void __attribute__((no_instrument_function))
__cyg_profile_func_enter(void *this_fn, void *call_site)
{
}

void __attribute__((no_instrument_function))
__cyg_profile_func_exit(void *this_fn, void *call_site)
{
}

extern inline __attribute__((gnu_inline, always_inline)) int foo () { }
int main()
{
  foo ();
  return 0;
}