strace/tests/stack-fcall-3.c
Dmitry V. Levin b076420692 tests: robustify -k test
Split stack-fcall.c into several compilation units so that intermediate
function calls would not be optimized out by compiler.

* tests/stack-fcall.c: Move intermediate functions to ...
* tests/stack-fcall-*.c: ... new files.
* tests/Makefile.am (stack_fcall_SOURCES): Add stack-fcall-*.c.
2014-06-18 15:18:47 +00:00

7 lines
61 B
C

#include <unistd.h>
int f3(int i)
{
return getpid() + i;
}