Skip to content
Commit 08d4dc90 authored by Keith Packard's avatar Keith Packard Committed by Stephanos Ioannidis
Browse files

tests/heap_listener: Store 'malloc' value in global to avoid optimizer



When the compiler is allowed to know the semantics of malloc and free,
this test needs to be careful to not have both calls elided by not using
the result at all. Simply storing the malloc pointer in a global
variable is sufficient here.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 5d6b43f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment