[libcxx-commits] [libcxx] 40083cf - [libc++] Some tests are missing include for `numeric_limits` (#90345)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 30 10:44:04 PDT 2024
Author: Alex Guteniev
Date: 2024-04-30T11:44:00-06:00
New Revision: 40083cf378e8c93165c5f9dd9d06611beca78f54
URL: https://github.com/llvm/llvm-project/commit/40083cf378e8c93165c5f9dd9d06611beca78f54
DIFF: https://github.com/llvm/llvm-project/commit/40083cf378e8c93165c5f9dd9d06611beca78f54.diff
LOG: [libc++] Some tests are missing include for `numeric_limits` (#90345)
Noticed while attempting microsoft/STL#4634
Added:
Modified:
libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
libcxx/test/std/strings/string.conversions/stol.pass.cpp
libcxx/test/std/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp
libcxx/test/std/utilities/format/format.arguments/format.args/get.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
index 6103f3e87d4f15..0d28cff511dee4 100644
--- a/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
+++ b/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
@@ -14,6 +14,7 @@
// _Tp midpoint(_Float __a, _Float __b) noexcept
//
+#include <limits>
#include <numeric>
#include <cassert>
diff --git a/libcxx/test/std/strings/string.conversions/stol.pass.cpp b/libcxx/test/std/strings/string.conversions/stol.pass.cpp
index 1e47bd50495757..083a6aaff28c97 100644
--- a/libcxx/test/std/strings/string.conversions/stol.pass.cpp
+++ b/libcxx/test/std/strings/string.conversions/stol.pass.cpp
@@ -13,6 +13,7 @@
#include <string>
#include <cassert>
+#include <limits>
#include <stdexcept>
#include "test_macros.h"
diff --git a/libcxx/test/std/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp b/libcxx/test/std/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp
index 3497d8935c8d62..5ab8c649cc58c7 100644
--- a/libcxx/test/std/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp
+++ b/libcxx/test/std/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp
@@ -16,6 +16,7 @@
#include <algorithm>
#include <format>
#include <cassert>
+#include <limits>
#include <type_traits>
#include "constexpr_char_traits.h"
diff --git a/libcxx/test/std/utilities/format/format.arguments/format.args/get.pass.cpp b/libcxx/test/std/utilities/format/format.arguments/format.args/get.pass.cpp
index a5d3703397f4e4..c590cebf48accd 100644
--- a/libcxx/test/std/utilities/format/format.arguments/format.args/get.pass.cpp
+++ b/libcxx/test/std/utilities/format/format.arguments/format.args/get.pass.cpp
@@ -14,6 +14,7 @@
#include <format>
#include <cassert>
+#include <limits>
#include <type_traits>
#include "test_macros.h"
More information about the libcxx-commits
mailing list