From b255afb4ac243749efea4fb3b99b67cdcebdac2f Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 29 Jul 2019 22:48:51 +0000 Subject: [PATCH] Fix tests with modules enabled git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@367268 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../alg.random.shuffle/random_shuffle.cxx1z.pass.cpp | 1 + test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp | 1 + .../depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp | 1 + .../utilities/function.objects/negators/binary_negate.pass.cpp | 1 + test/std/utilities/function.objects/negators/not1.pass.cpp | 1 + test/std/utilities/function.objects/negators/not2.pass.cpp | 1 + .../utilities/function.objects/negators/unary_negate.pass.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp b/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp index 2c34f7748..a63c1c28b 100644 --- a/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp +++ b/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp @@ -25,6 +25,7 @@ // REQUIRES: verify-support // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS diff --git a/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp b/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp index 67dadd640..cdf976cb6 100644 --- a/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp +++ b/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.cxx1z.pass.cpp @@ -16,6 +16,7 @@ // is defined before including , then auto_ptr will be restored. // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS diff --git a/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp b/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp index 3469c27e0..fff0d3592 100644 --- a/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp +++ b/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp @@ -14,6 +14,7 @@ // is defined before including , then they will be restored. // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS diff --git a/test/std/utilities/function.objects/negators/binary_negate.pass.cpp b/test/std/utilities/function.objects/negators/binary_negate.pass.cpp index cc8e4219f..ba79cad80 100644 --- a/test/std/utilities/function.objects/negators/binary_negate.pass.cpp +++ b/test/std/utilities/function.objects/negators/binary_negate.pass.cpp @@ -10,6 +10,7 @@ // binary_negate +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include diff --git a/test/std/utilities/function.objects/negators/not1.pass.cpp b/test/std/utilities/function.objects/negators/not1.pass.cpp index 2e436a694..daccbcce3 100644 --- a/test/std/utilities/function.objects/negators/not1.pass.cpp +++ b/test/std/utilities/function.objects/negators/not1.pass.cpp @@ -10,6 +10,7 @@ // not1 +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include diff --git a/test/std/utilities/function.objects/negators/not2.pass.cpp b/test/std/utilities/function.objects/negators/not2.pass.cpp index e4b69068c..8fb4959a7 100644 --- a/test/std/utilities/function.objects/negators/not2.pass.cpp +++ b/test/std/utilities/function.objects/negators/not2.pass.cpp @@ -10,6 +10,7 @@ // not2 +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include diff --git a/test/std/utilities/function.objects/negators/unary_negate.pass.cpp b/test/std/utilities/function.objects/negators/unary_negate.pass.cpp index da75720af..91f09a839 100644 --- a/test/std/utilities/function.objects/negators/unary_negate.pass.cpp +++ b/test/std/utilities/function.objects/negators/unary_negate.pass.cpp @@ -10,6 +10,7 @@ // unary_negate +// MODULES_DEFINES: _LIBCPP_DISABLE_DEPRECATION_WARNINGS #define _LIBCPP_DISABLE_DEPRECATION_WARNINGS #include