xref: /netbsd-src/external/apache2/llvm/dist/clang/tools/clang-fuzzer/DummyClangFuzzer.cpp (revision 7330f729ccf0bd976a06f95fad452fe774fc7fd1)
1*7330f729Sjoerg //===-- DummyClangFuzzer.cpp - Entry point to sanity check fuzzers --------===//
2*7330f729Sjoerg //
3*7330f729Sjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*7330f729Sjoerg // See https://llvm.org/LICENSE.txt for license information.
5*7330f729Sjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*7330f729Sjoerg //
7*7330f729Sjoerg //===----------------------------------------------------------------------===//
8*7330f729Sjoerg //
9*7330f729Sjoerg // Provides a main() to build without linking libFuzzer.
10*7330f729Sjoerg //
11*7330f729Sjoerg //===----------------------------------------------------------------------===//
12*7330f729Sjoerg #include "llvm/FuzzMutate/FuzzerCLI.h"
13*7330f729Sjoerg 
14*7330f729Sjoerg extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
15*7330f729Sjoerg extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
16*7330f729Sjoerg 
main(int argc,char * argv[])17*7330f729Sjoerg int main(int argc, char *argv[]) {
18*7330f729Sjoerg   return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
19*7330f729Sjoerg                                  LLVMFuzzerInitialize);
20*7330f729Sjoerg }
21