commit | d34b7681abc002c6f23f14cfd52ec0bae6072e0f | [log] [tgz] |
---|---|---|
author | Youling Tang <tangyouling@loongson.cn> | Thu Nov 10 13:44:10 2022 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Nov 09 21:50:42 2022 -0800 |
tree | 4a00f25fb5fa7ac3e28fcdd4243378b459e3e4d9 | |
parent | 02e15b2ff3921b89d965cbb437b0df5326306fc0 [diff] |
[fuzzer][test] Add #include <cstdint> for gcc-13 See https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D137696 GitOrigin-RevId: 3ba498d145f7ce07b5c25633c2179e64943dae13
diff --git a/test/fuzzer/CounterTest.cpp b/test/fuzzer/CounterTest.cpp index 84112f9..e04da67 100644 --- a/test/fuzzer/CounterTest.cpp +++ b/test/fuzzer/CounterTest.cpp
@@ -4,6 +4,7 @@ // Test for a fuzzer: must find the case where a particular basic block is // executed many times. +#include <cstdint> #include <iostream> extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
diff --git a/test/fuzzer/FlagsTest.cpp b/test/fuzzer/FlagsTest.cpp index 8acd2f9..9c3e91c 100644 --- a/test/fuzzer/FlagsTest.cpp +++ b/test/fuzzer/FlagsTest.cpp
@@ -3,6 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Parse some flags +#include <cstdint> #include <string> #include <vector>