Skip to content
Commit fa41ec05 authored by Watson Zeng's avatar Watson Zeng Committed by Anas Nashif
Browse files

tests: mem_alloc: workaround aggressive optimization



As we don't use memory allocated in test_calloc, test_no_mem_malloc,
and test_no_mem_realloc. malloc call can be optimized away (that really
happens with ARC MWDT toolchain). That breaks the test. So disable
optimization for these functions.

Signed-off-by: default avatarWatson Zeng <zhiwei@synopsys.com>
parent 0f691238
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment