]>
git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/fuzzer/SimpleThreadedTest.cpp
1 // This file is distributed under the University of Illinois Open Source
2 // License. See LICENSE.TXT for details.
4 // Threaded test for a fuzzer. The fuzzer should find "H"
13 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data
, size_t Size
) {
15 if (Size
>= 2 && Data
[0] == 'H') {
16 std::cout
<< "BINGO; Found the target, exiting\n" << std::flush
;
20 std::thread T
[] = {std::thread(C
), std::thread(C
), std::thread(C
),
21 std::thread(C
), std::thread(C
), std::thread(C
)};