2 #include "../memcheck.h"
3 #define INLINE inline __attribute__((always_inline))
5 INLINE
int fun_d(int argd
) {
12 INLINE
int fun_c(int argc
) {
18 INLINE
int fun_b(int argb
) {
24 INLINE
int fun_a(int arga
) {
30 __attribute__((noinline
))
31 static int fun_noninline_m(int argm
)
36 __attribute__((noinline
))
37 static int fun_noninline_o(int argo
)
45 INLINE
int fun_f(int argf
) {
48 return fun_noninline_o(locf
);
51 INLINE
int fun_e(int arge
) {
57 __attribute__((noinline
))
58 static int fun_noninline_n(int argn
)
66 result
= fun_a(result
);
67 VALGRIND_MAKE_MEM_UNDEFINED(&result
, sizeof(result
));
68 result
+= fun_noninline_m(result
);
69 VALGRIND_MAKE_MEM_UNDEFINED(&result
, sizeof(result
));
70 result
+= fun_d(result
);
71 VALGRIND_MAKE_MEM_UNDEFINED(&result
, sizeof(result
));
72 result
+= fun_noninline_n(result
);