diff options
Diffstat (limited to 'llvm/lib/Fuzzer/test/CounterTest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/CounterTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/CounterTest.cpp b/llvm/lib/Fuzzer/test/CounterTest.cpp index 29ddb02ebae..b61f419c499 100644 --- a/llvm/lib/Fuzzer/test/CounterTest.cpp +++ b/llvm/lib/Fuzzer/test/CounterTest.cpp @@ -2,7 +2,7 @@ // executed many times. #include <iostream> -extern "C" void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { int Num = 0; for (size_t i = 0; i < Size; i++) if (Data[i] == 'A' + i) @@ -11,4 +11,5 @@ extern "C" void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { std::cerr << "BINGO!\n"; exit(1); } + return 0; } |