Fix libproc test case to work with clang premature optimization

observed with -O2 (used by default).
Avoid function inlining for t1_bkpt_t on which we set a breakpoint.
Otherwise the address of the function is never called thus the
breakpoint never triggers.

Reported by:	zont
Reviewed by:	rpaulo
This commit is contained in:
Sergey Kandaurov 2012-12-26 05:11:48 +00:00
parent 659cf796d3
commit 322f22f7b5

View File

@ -36,7 +36,7 @@
#include <string.h>
#include <libproc.h>
int
int __noinline
t1_bkpt_t()
{
printf("TEST OK\n");