From 8f500a6f9ca0e56e41513435d0257c84ddabb566 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 5 Jun 2019 21:54:34 +0000 Subject: [PATCH] [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 llvm-svn: 362660 --- libcxx/test/std/utilities/variant/variant.get/get_index.pass.cpp | 1 + libcxx/test/std/utilities/variant/variant.get/get_type.pass.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/libcxx/test/std/utilities/variant/variant.get/get_index.pass.cpp b/libcxx/test/std/utilities/variant/variant.get/get_index.pass.cpp index 4b0ae15c3525..d8711c763665 100644 --- a/libcxx/test/std/utilities/variant/variant.get/get_index.pass.cpp +++ b/libcxx/test/std/utilities/variant/variant.get/get_index.pass.cpp @@ -27,6 +27,7 @@ // variant&& v); #include "test_macros.h" +#include "test_workarounds.h" #include "variant_test_helpers.hpp" #include #include diff --git a/libcxx/test/std/utilities/variant/variant.get/get_type.pass.cpp b/libcxx/test/std/utilities/variant/variant.get/get_type.pass.cpp index bd9153671e29..5272c0981a8a 100644 --- a/libcxx/test/std/utilities/variant/variant.get/get_type.pass.cpp +++ b/libcxx/test/std/utilities/variant/variant.get/get_type.pass.cpp @@ -21,6 +21,7 @@ // variant&& v); #include "test_macros.h" +#include "test_workarounds.h" #include "variant_test_helpers.hpp" #include #include