xref: /llvm-project/clang/tools/clang-fuzzer/DummyClangFuzzer.cpp (revision 2946cd701067404b99c39fb29dc9c74bd7193eb3)
17b6010cdSMatt Morehouse //===-- DummyClangFuzzer.cpp - Entry point to sanity check fuzzers --------===//
27b6010cdSMatt Morehouse //
3*2946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*2946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
5*2946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
67b6010cdSMatt Morehouse //
77b6010cdSMatt Morehouse //===----------------------------------------------------------------------===//
87b6010cdSMatt Morehouse //
97b6010cdSMatt Morehouse // Provides a main() to build without linking libFuzzer.
107b6010cdSMatt Morehouse //
117b6010cdSMatt Morehouse //===----------------------------------------------------------------------===//
127b6010cdSMatt Morehouse #include "llvm/FuzzMutate/FuzzerCLI.h"
137b6010cdSMatt Morehouse 
147b6010cdSMatt Morehouse extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
157b6010cdSMatt Morehouse extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
167b6010cdSMatt Morehouse 
main(int argc,char * argv[])177b6010cdSMatt Morehouse int main(int argc, char *argv[]) {
187b6010cdSMatt Morehouse   return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
197b6010cdSMatt Morehouse                                  LLVMFuzzerInitialize);
207b6010cdSMatt Morehouse }
21