1*990061b6SFangrui Song //===-- DummyISelFuzzer.cpp - Entry point to sanity check the fuzzer ------===// 2c3b67fbdSJustin Bogner // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6c3b67fbdSJustin Bogner // 7c3b67fbdSJustin Bogner //===----------------------------------------------------------------------===// 8c3b67fbdSJustin Bogner // 9c3b67fbdSJustin Bogner // Implementation of main so we can build and test without linking libFuzzer. 10c3b67fbdSJustin Bogner // 11c3b67fbdSJustin Bogner //===----------------------------------------------------------------------===// 12c3b67fbdSJustin Bogner 137f28d732SJustin Bogner #include "llvm/FuzzMutate/FuzzerCLI.h" 14c3b67fbdSJustin Bogner 15c3b67fbdSJustin Bogner extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); 16b79a4efcSJustin Bogner extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv); main(int argc,char * argv[])17c3b67fbdSJustin Bognerint main(int argc, char *argv[]) { 187f28d732SJustin Bogner return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput, 197f28d732SJustin Bogner LLVMFuzzerInitialize); 20c3b67fbdSJustin Bogner } 21