diff options
Diffstat (limited to 'lib/Fuzzer/test/CounterTest.cpp')
| -rw-r--r-- | lib/Fuzzer/test/CounterTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Fuzzer/test/CounterTest.cpp b/lib/Fuzzer/test/CounterTest.cpp index 29ddb02ebaea..b61f419c4991 100644 --- a/lib/Fuzzer/test/CounterTest.cpp +++ b/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; } |
