[compiler-rt] d8a3070 - [test][sanitizer] Remove test missing include
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 13 09:49:18 PDT 2023
Author: Vitaly Buka
Date: 2023-06-13T09:48:52-07:00
New Revision: d8a3070c321e4c7cfdb6fd32965f107bd61e623e
URL: https://github.com/llvm/llvm-project/commit/d8a3070c321e4c7cfdb6fd32965f107bd61e623e
DIFF: https://github.com/llvm/llvm-project/commit/d8a3070c321e4c7cfdb6fd32965f107bd61e623e.diff
LOG: [test][sanitizer] Remove test missing include
We don't need to test with std::array anyway, as we don't use them in
sanitizers.
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp
index d8244c59532b0..60d3842a0441b 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp
@@ -132,16 +132,6 @@ TEST(ArrayRefTest, ArrayRef) {
EXPECT_TRUE(ar2.equals(ar2_ref));
}
-TEST(ArrayRefTest, ArrayRefFromStdArray) {
- std::array<int, 5> a1{{42, -5, 0, 1000000, -1000000}};
- ArrayRef<int> a2 = ArrayRef<int>(a1);
-
- EXPECT_EQ(a1.size(), a2.size());
- for (std::size_t i = 0; i < a1.size(); ++i) {
- EXPECT_EQ(a1[i], a2[i]);
- }
-}
-
static_assert(std::is_trivially_copyable_v<ArrayRef<int>>,
"trivially copyable");
More information about the llvm-commits
mailing list