blob: 382c161307b16d23ff1a0a5a0109b32681f02996 [file] [log] [blame]
Matt Morehouse7b6010c2017-10-11 15:51:12 +00001//===-- DummyClangFuzzer.cpp - Entry point to sanity check fuzzers --------===//
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// Provides a main() to build without linking libFuzzer.
11//
12//===----------------------------------------------------------------------===//
13#include "llvm/FuzzMutate/FuzzerCLI.h"
14
15extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
16extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
17
18int main(int argc, char *argv[]) {
19 return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
20 LLVMFuzzerInitialize);
21}