//===-- A template class for testing ato* functions -------------*- C++ -*-===// // // 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/__support/CPP/limits.h" // INT_MAX, INT_MIN, LLONG_MAX, LLONG_MIN #include "src/__support/CPP/type_traits.h" #include "test/UnitTest/Test.h" is_same_v; template <typename ReturnT> struct AtoTest : public LIBC_NAMESPACE::testing::Test { … }; template <typename ReturnType> AtoTest(ReturnType (*)(const char *)) -> AtoTest<ReturnType>; #define ATOI_TEST(name, func) …