diff options
author | Mattias Andrée <maandree@kth.se> | 2018-08-29 18:38:55 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-08-29 18:38:55 +0200 |
commit | c08ceacdbc096a05f520c99e5b7f230212c249bb (patch) | |
tree | 9be3c0f2e8898965df3951166f2ed0d58f3d16f2 /test.c | |
parent | Fix clang support (diff) | |
download | libsimple-c08ceacdbc096a05f520c99e5b7f230212c249bb.tar.gz libsimple-c08ceacdbc096a05f520c99e5b7f230212c249bb.tar.bz2 libsimple-c08ceacdbc096a05f520c99e5b7f230212c249bb.tar.xz |
Circumvent optimisation bug in clang, and fix bug in have_custom_malloc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -43,7 +43,9 @@ round_up(size_t size) int have_custom_malloc(void) { + size_t old_alloc_fail_in = alloc_fail_in; free(malloc(1)); + alloc_fail_in = old_alloc_fail_in; return custom_malloc; } |