diff options
Diffstat (limited to 'test/fuzzer/TraceMallocThreadedTest.cpp')
| -rw-r--r-- | test/fuzzer/TraceMallocThreadedTest.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fuzzer/TraceMallocThreadedTest.cpp b/test/fuzzer/TraceMallocThreadedTest.cpp index 5603af344cb7b..0183d939af51b 100644 --- a/test/fuzzer/TraceMallocThreadedTest.cpp +++ b/test/fuzzer/TraceMallocThreadedTest.cpp @@ -7,11 +7,12 @@  #include <cstddef>  #include <cstdint>  #include <cstring> +#include <cstdlib>  #include <thread>  extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {    auto C = [&] { -    volatile void *a = malloc(5639); +    void * volatile a = malloc(5639);      free((void *)a);    };    std::thread T[] = {std::thread(C), std::thread(C), std::thread(C),  | 
