blob: ec9c74e3040dd830b0f096904063672fc3700c06 [file] [log] [blame]
Justin Bogner8cb6b3e2017-09-01 17:02:22 +00001//===--- DummyFuzzerMain.cpp - Entry point to sanity check the fuzzer -----===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Implementation of main so we can build and test without linking libFuzzer.
11//
12//===----------------------------------------------------------------------===//
13
Justin Bogner16edf9b2017-09-02 23:43:04 +000014#include "llvm/FuzzMutate/FuzzerCLI.h"
Justin Bogner8cb6b3e2017-09-01 17:02:22 +000015
16extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
Justin Bognerf2de8c12017-09-01 19:37:49 +000017extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
Justin Bogner8cb6b3e2017-09-01 17:02:22 +000018int main(int argc, char *argv[]) {
Justin Bogner16edf9b2017-09-02 23:43:04 +000019 return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
20 LLVMFuzzerInitialize);
Justin Bogner8cb6b3e2017-09-01 17:02:22 +000021}