1 //===--- special-case-list-fuzzer.cpp - Fuzzer for special case lists -----===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Support/MemoryBuffer.h"
11 #include "llvm/Support/SpecialCaseList.h"
15 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data
, size_t Size
) {
16 std::unique_ptr
<llvm::MemoryBuffer
> Buf
= llvm::MemoryBuffer::getMemBuffer(
17 llvm::StringRef(reinterpret_cast<const char *>(Data
), Size
), "", false);
23 llvm::SpecialCaseList::create(Buf
.get(), Error
);