summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr78333.c
blob: ca037e55f82cdc8c5b96015703aad8c513bd98a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { 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;
}