[libcxx-commits] [libcxx] c0824a7 - [libc++][NFC] Qualify nullptr_t in test

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 4 08:20:37 PDT 2021


Author: Louis Dionne
Date: 2021-10-04T11:20:24-04:00
New Revision: c0824a7044f263419bd830073a70990f603de78b

URL: https://github.com/llvm/llvm-project/commit/c0824a7044f263419bd830073a70990f603de78b
DIFF: https://github.com/llvm/llvm-project/commit/c0824a7044f263419bd830073a70990f603de78b.diff

LOG: [libc++][NFC] Qualify nullptr_t in test

Added: 
    

Modified: 
    libcxx/test/std/utilities/utility/utility.intcmp/intcmp.fail.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.fail.cpp b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.fail.cpp
index 8395f287f71e2..b5d68c805705f 100644
--- a/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.fail.cpp
+++ b/libcxx/test/std/utilities/utility/utility.intcmp/intcmp.fail.cpp
@@ -33,6 +33,7 @@
 //   constexpr bool in_range(T t) noexcept;      // C++20
 
 #include <utility>
+#include <cstddef>
 
 #include "test_macros.h"
 
@@ -133,7 +134,7 @@ int main() {
   test<std::byte>();
   test<NonEmptyT>();
   test<ColorT>();
-  test<nullptr_t>();
+  test<std::nullptr_t>();
   test<EmptyT>();
 
 #ifndef _LIBCPP_HAS_NO_CHAR8_T


        


More information about the libcxx-commits mailing list