blob: 0674b4714cfa168080bc3eb00836223081c05585 [file] [log] [blame]
Fangrui Song990061b2019-02-21 07:57:14 +00001//===-- DummyISelFuzzer.cpp - Entry point to sanity check the fuzzer ------===//
Justin Bognerc3b67fb2017-09-01 17:02:22 +00002//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Justin Bognerc3b67fb2017-09-01 17:02:22 +00006//
7//===----------------------------------------------------------------------===//
8//
9// Implementation of main so we can build and test without linking libFuzzer.
10//
11//===----------------------------------------------------------------------===//
12
Justin Bogner7f28d732017-09-02 23:43:04 +000013#include "llvm/FuzzMutate/FuzzerCLI.h"
Justin Bognerc3b67fb2017-09-01 17:02:22 +000014
15extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
Justin Bognerb79a4ef2017-09-01 19:37:49 +000016extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
Justin Bognerc3b67fb2017-09-01 17:02:22 +000017int main(int argc, char *argv[]) {
Justin Bogner7f28d732017-09-02 23:43:04 +000018 return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
19 LLVMFuzzerInitialize);
Justin Bognerc3b67fb2017-09-01 17:02:22 +000020}