mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-14 12:12:15 -04:00
tests: make no-optimize attribute Clang compatible
This commit is contained in:
parent
b404d6da6e
commit
de3fb50dcc
34 changed files with 113 additions and 67 deletions
10
test/test_util.h
Normal file
10
test/test_util.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#ifndef TEST_UTIL_H
|
||||
#define TEST_UTIL_H
|
||||
|
||||
#ifdef __clang__
|
||||
#define OPTNONE __attribute__((optnone))
|
||||
#else
|
||||
#define OPTNONE __attribute__((optimize(0)))
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue