mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-02 06:16:24 -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
|
@ -1,8 +1,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
__attribute__((optimize(0)))
|
||||
int main(void) {
|
||||
#include "test_util.h"
|
||||
|
||||
OPTNONE int main(void) {
|
||||
void *p = NULL;
|
||||
size_t size = 256 * 1024;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue