llvm-project/llvm/lib/Fuzzer/test/LeakTest.cpp

12 lines
196 B
C++

// Test with a leak.
#include <cstdint>
#include <cstddef>
static volatile void *Sink;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
Sink = new int;
return 0;
}