1 // This file is distributed under the University of Illinois Open Source
2 // License. See LICENSE.TXT for details.
4 // Simple test for a fuzzer. Tests that fuzzer can read a file containing
11 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size) {
12 std::string InputStr(reinterpret_cast<const char*>(Data), Size);
13 std::string MagicStr("Hello\r\nWorld\r\n");
14 if (InputStr == MagicStr) {
15 std::cout << "BINGO!";