From: Vitaly Buka Date: Tue, 13 Jun 2023 19:26:41 +0000 (-0700) Subject: [test][sanitizer] Fix test on windows X-Git-Tag: upstream/17.0.6~5227 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a37bd137447b7af02d49fc66423846c3fc5c28bf;p=platform%2Fupstream%2Fllvm.git [test][sanitizer] Fix test on windows --- 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 f6e816d..12a83df 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 @@ -109,13 +109,6 @@ TEST(ArrayRefTest, ConstConvert) { a = ArrayRef(ptrs); } -static std::vector ReturnTest12() { return {1, 2}; } -static void ArgTest12(ArrayRef a) { - EXPECT_EQ(2U, a.size()); - EXPECT_EQ(1, a[0]); - EXPECT_EQ(2, a[1]); -} - TEST(ArrayRefTest, ArrayRef) { static const int kA1[] = {1, 2, 3, 4, 5, 6, 7, 8}; @@ -127,7 +120,7 @@ TEST(ArrayRefTest, ArrayRef) { // A copy is expected for non-const ArrayRef (thin copy) const ArrayRef ar2(kA1); - const ArrayRef &ar2_ref = ArrayRef(ar2); + const ArrayRef &ar2_ref = ArrayRef(ar2); EXPECT_NE(&ar2_ref, &ar2); EXPECT_TRUE(ar2.equals(ar2_ref)); }