//===-- Unittests for mempcpy ---------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "src/string/mempcpy.h" #include "test/UnitTest/Test.h" // Since this function just calls out to memcpy, and memcpy has its own unit // tests, it is assumed that memcpy works. These tests are just for the specific // mempcpy behavior (returning the end of what was copied). TEST(LlvmLibcMempcpyTest, Simple) { … } TEST(LlvmLibcMempcpyTest, ZeroCount) { … }