1 //===--- DummyFuzzerMain.cpp - Entry point to sanity check the fuzzer -----===//
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 // Implementation of main so we can build and test without linking libFuzzer.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/FuzzMutate/FuzzerCLI.h"
16 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data
, size_t Size
);
17 extern "C" int LLVMFuzzerInitialize(int *argc
, char ***argv
);
18 int main(int argc
, char *argv
[]) {
19 return llvm::runFuzzerOnInputs(argc
, argv
, LLVMFuzzerTestOneInput
,
20 LLVMFuzzerInitialize
);