//===-- Unittests for vasprintf--------------------------------------------===// // // 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/stdio/sprintf.h" #include "src/stdio/vasprintf.h" #include "src/string/memset.h" #include "test/UnitTest/Test.h" int call_vasprintf(char **__restrict buffer, const char *__restrict format, ...) { … } TEST(LlvmLibcVASPrintfTest, SimpleNoConv) { … } TEST(LlvmLibcVASPrintfTest, PercentConv) { … } TEST(LlvmLibcVASPrintfTest, CharConv) { … } TEST(LlvmLibcVASPrintfTest, LargeStringNoConv) { … } TEST(LlvmLibcVASPrintfTest, ManyReAlloc) { … }