Mercurial > hg > CbC > CbC_llvm
comparison compiler-rt/test/fuzzer/CounterTest.cpp @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
2 // See https://llvm.org/LICENSE.txt for license information. | 2 // See https://llvm.org/LICENSE.txt for license information. |
3 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | 3 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
4 | 4 |
5 // Test for a fuzzer: must find the case where a particular basic block is | 5 // Test for a fuzzer: must find the case where a particular basic block is |
6 // executed many times. | 6 // executed many times. |
7 #include <cstdint> | |
7 #include <iostream> | 8 #include <iostream> |
8 | 9 |
9 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { | 10 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { |
10 int Num = 0; | 11 int Num = 0; |
11 for (size_t i = 0; i < Size; i++) | 12 for (size_t i = 0; i < Size; i++) |