xref: /llvm-project/llvm/tools/llvm-rust-demangle-fuzzer/DummyDemanglerFuzzer.cpp (revision 0e7c2aeaa8c0fe25178f7fc4c61cd92321cdde76)
1*0e7c2aeaSTomasz Miąsko //===-- DummyDemanglerFuzzer.cpp - Entry point to sanity check the fuzzer -===//
2*0e7c2aeaSTomasz Miąsko //
3*0e7c2aeaSTomasz Miąsko // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0e7c2aeaSTomasz Miąsko // See https://llvm.org/LICENSE.txt for license information.
5*0e7c2aeaSTomasz Miąsko // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0e7c2aeaSTomasz Miąsko //
7*0e7c2aeaSTomasz Miąsko //===----------------------------------------------------------------------===//
8*0e7c2aeaSTomasz Miąsko //
9*0e7c2aeaSTomasz Miąsko // Implementation of main so we can build and test without linking libFuzzer.
10*0e7c2aeaSTomasz Miąsko //
11*0e7c2aeaSTomasz Miąsko //===----------------------------------------------------------------------===//
12*0e7c2aeaSTomasz Miąsko 
13*0e7c2aeaSTomasz Miąsko #include "llvm/FuzzMutate/FuzzerCLI.h"
14*0e7c2aeaSTomasz Miąsko 
15*0e7c2aeaSTomasz Miąsko extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
main(int argc,char * argv[])16*0e7c2aeaSTomasz Miąsko int main(int argc, char *argv[]) {
17*0e7c2aeaSTomasz Miąsko   return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput);
18*0e7c2aeaSTomasz Miąsko }
19