summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/LeakTest.cpp
blob: 7d153e45691cf319113d184956f923563b8ba982 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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;
}

OpenPOWER on IntegriCloud