summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-10-19 00:06:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-10-19 00:06:00 +0000
commita9727033fb5fa229b520e0e0d973f68780bc5348 (patch)
tree1f0afdef1d75d333b9206b4e26d3c26edf55a3bd /libcxx/test/std
parent974c8b7e2fde550fd87850d50695341101c38c2d (diff)
downloadbcm5719-llvm-a9727033fb5fa229b520e0e0d973f68780bc5348.tar.gz
bcm5719-llvm-a9727033fb5fa229b520e0e0d973f68780bc5348.zip
P1152R4: Fix deprecation warnings in libc++ testsuite and in uses of is_invocable that would internally conjure up a deprecated function type.
Summary: The implementation of P1152R4 in Clang has resulted in some deprecation warnings appearing in the libc++ and libc++abi test suite. Fix or suppress these warnings. Reviewers: mclow.lists, EricWF Subscribers: christof, ldionne, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D68879 llvm-svn: 375307
Diffstat (limited to 'libcxx/test/std')
-rw-r--r--libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp
index 2128590047d..595989c4f3f 100644
--- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp
+++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp
@@ -55,6 +55,9 @@ void test_result_of_imp()
#endif
}
+// Do not warn on deprecated uses of 'volatile' below.
+_LIBCPP_SUPPRESS_DEPRECATED_PUSH
+
int main(int, char**)
{
{
@@ -171,3 +174,5 @@ int main(int, char**)
return 0;
}
+
+_LIBCPP_SUPPRESS_DEPRECATED_POP
OpenPOWER on IntegriCloud