[libcxx-commits] [libcxx] [libc++] Add missing include <limits> to bitset to_ullong.pass.cpp test (PR #149149)

Jonathan Wakely via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 16 10:48:22 PDT 2025


https://github.com/jwakely created https://github.com/llvm/llvm-project/pull/149149

This was added to to_ulong.pass.cpp years ago by
cf1dc8d39e2c9870468ca86f7956a65c7745fece but I don't think the other part of that commit matters here.

>From 40a67126d2b7a90b7179e7f040ee84db9e6d9bc2 Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <github at kayari.org>
Date: Wed, 16 Jul 2025 18:46:04 +0100
Subject: [PATCH] [libc++] Add missing include <limits> to bitset
 to_ullong.pass.cpp test

This was added to to_ulong.pass.cpp years ago by
cf1dc8d39e2c9870468ca86f7956a65c7745fece but I don't think the other
part of that commit matters here.
---
 .../utilities/template.bitset/bitset.members/to_ullong.pass.cpp  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcxx/test/std/utilities/template.bitset/bitset.members/to_ullong.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.members/to_ullong.pass.cpp
index 5df6103d79e7a..3c5a57d1c7fec 100644
--- a/libcxx/test/std/utilities/template.bitset/bitset.members/to_ullong.pass.cpp
+++ b/libcxx/test/std/utilities/template.bitset/bitset.members/to_ullong.pass.cpp
@@ -11,6 +11,7 @@
 #include <bitset>
 #include <algorithm>
 #include <type_traits>
+#include <limits>
 #include <climits>
 #include <cassert>
 #include <stdexcept>



More information about the libcxx-commits mailing list