llvm.org GIT mirror llvm / 540a311
[SupportTests] Silence -Wsign-compare warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335921 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 1 year, 3 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
148148 FileOutputBuffer::create(File1, size_t(-1), FileOutputBuffer::F_modify);
149149 ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError()));
150150 std::unique_ptr &Buffer = *BufferOrErr;
151 ASSERT_EQ(10, Buffer->getBufferSize());
151 ASSERT_EQ(10U, Buffer->getBufferSize());
152152 uint8_t *Data = Buffer->getBufferStart();
153153 Data[0] = 'X';
154154 Data[9] = 'X';
161161 ErrorOr> BufferOrErr = MemoryBuffer::getFile(File1);
162162 ASSERT_NO_ERROR(BufferOrErr.getError());
163163 std::unique_ptr Buffer = std::move(*BufferOrErr);
164 ASSERT_EQ(10, Buffer->getBufferSize());
164 ASSERT_EQ(10U, Buffer->getBufferSize());
165165 EXPECT_EQ(StringRef("XAAAAAAAAX"), Buffer->getBuffer());
166166 }
167167