]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/test/thirdparty/Fuzzer/test/SpamyTest.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / nlohmann-json / test / thirdparty / Fuzzer / test / SpamyTest.cpp
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
11 extern "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