[libcxx-commits] [libcxx] r362660 - [libcxx][test] Include test_workarounds.h where needed

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 5 14:54:35 PDT 2019


Author: ldionne
Date: Wed Jun  5 14:54:34 2019
New Revision: 362660

URL: http://llvm.org/viewvc/llvm-project?rev=362660&view=rev
Log:
[libcxx][test] Include test_workarounds.h where needed

Some tests require `TEST_WORKAROUND_CONSTEXPR_IMPLIES_NOEXCEPT`, but they
did not include the header that defines that macro.

Thanks to Michael Park for the patch.

Differential Revision: https://reviews.llvm.org/D62920

Modified:
    libcxx/trunk/test/std/utilities/variant/variant.get/get_index.pass.cpp
    libcxx/trunk/test/std/utilities/variant/variant.get/get_type.pass.cpp

Modified: libcxx/trunk/test/std/utilities/variant/variant.get/get_index.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/variant/variant.get/get_index.pass.cpp?rev=362660&r1=362659&r2=362660&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/variant/variant.get/get_index.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/variant/variant.get/get_index.pass.cpp Wed Jun  5 14:54:34 2019
@@ -27,6 +27,7 @@
 //  variant<Types...>&& v);
 
 #include "test_macros.h"
+#include "test_workarounds.h"
 #include "variant_test_helpers.hpp"
 #include <cassert>
 #include <type_traits>

Modified: libcxx/trunk/test/std/utilities/variant/variant.get/get_type.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/variant/variant.get/get_type.pass.cpp?rev=362660&r1=362659&r2=362660&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/variant/variant.get/get_type.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/variant/variant.get/get_type.pass.cpp Wed Jun  5 14:54:34 2019
@@ -21,6 +21,7 @@
 // variant<Types...>&& v);
 
 #include "test_macros.h"
+#include "test_workarounds.h"
 #include "variant_test_helpers.hpp"
 #include <cassert>
 #include <type_traits>




More information about the libcxx-commits mailing list