111
|
1 /* { dg-do link } */
|
|
2 /* { dg-options "-finstrument-functions" } */
|
|
3
|
|
4 /* Add empty implementations of __cyg_profile_func_enter() and
|
|
5 __cyg_profile_func_exit() to avoid problems on non-glibc
|
|
6 systems. */
|
|
7 void __attribute__((no_instrument_function))
|
|
8 __cyg_profile_func_enter(void *this_fn, void *call_site)
|
|
9 {
|
|
10 }
|
|
11
|
|
12 void __attribute__((no_instrument_function))
|
|
13 __cyg_profile_func_exit(void *this_fn, void *call_site)
|
|
14 {
|
|
15 }
|
|
16
|
|
17 extern inline __attribute__((gnu_inline, always_inline)) int foo () { }
|
|
18 int main()
|
|
19 {
|
|
20 foo ();
|
|
21 return 0;
|
|
22 }
|