1 // This file is distributed under the University of Illinois Open Source 2 // License. See LICENSE.TXT for details. 3 4 // The test spams to stderr and stdout. 5 #include <assert.h> 6 #include <cstdint> 7 #include <cstdio> 8 #include <cstddef> 9 #include <iostream> 10 LLVMFuzzerTestOneInput(const uint8_t * Data,size_t Size)11extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 12 assert(Data); 13 printf("PRINTF_STDOUT\n"); 14 fflush(stdout); 15 fprintf(stderr, "PRINTF_STDERR\n"); 16 std::cout << "STREAM_COUT\n"; 17 std::cout.flush(); 18 std::cerr << "STREAM_CERR\n"; 19 return 0; 20 } 21 22