[libcxx-commits] [libcxx] 00a6d3d - [libc++] Add missing test_macros.h include in tests using TEST_STD_VER.

Marek Kurdej via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 23 10:41:51 PDT 2021


Author: Marek Kurdej
Date: 2021-03-23T18:40:44+01:00
New Revision: 00a6d3dfa601156a66c6d010e8c9903671bcb831

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

LOG: [libc++] Add missing test_macros.h include in tests using TEST_STD_VER.

Added: 
    

Modified: 
    libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor2.pass.cpp
    libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/shared_ptr_copy_move.fail.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor2.pass.cpp b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor2.pass.cpp
index debdc12c85886..b67667dc3fefb 100644
--- a/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor2.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor2.pass.cpp
@@ -18,6 +18,8 @@
 #include <functional>
 #include <cassert>
 
+#include "test_macros.h"
+
 struct B {} b;
 
 struct A1 {

diff  --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/shared_ptr_copy_move.fail.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/shared_ptr_copy_move.fail.cpp
index 41452fd1af125..689d8ec85cea9 100644
--- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/shared_ptr_copy_move.fail.cpp
+++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/shared_ptr_copy_move.fail.cpp
@@ -15,6 +15,8 @@
 #include <memory>
 #include <type_traits>
 
+#include "test_macros.h"
+
 struct A {
   int x = 42;
 };


        


More information about the libcxx-commits mailing list