summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/iterators
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2017-11-15 07:40:37 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2017-11-15 07:40:37 +0000
commit83252766f906799d68a46af39687d7a60fa8530a (patch)
treec0885eb31dc65c8eccea6e06f5cad5d7fbf070ab /libcxx/test/std/iterators
parentad51924eb4aec3f28a2f1a20b8b9040bfd4d3052 (diff)
downloadbcm5719-llvm-83252766f906799d68a46af39687d7a60fa8530a.tar.gz
bcm5719-llvm-83252766f906799d68a46af39687d7a60fa8530a.zip
Tolerate [[nodiscard]] annotations in the STL. Reviewed as https://reviews.llvm.org/D39033
llvm-svn: 318276
Diffstat (limited to 'libcxx/test/std/iterators')
-rw-r--r--libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp4
-rw-r--r--libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp b/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
index 6522bd3c7bc..28a5e95f3ed 100644
--- a/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
+++ b/libcxx/test/std/iterators/iterators.general/gcc_workaround.pass.cpp
@@ -11,10 +11,10 @@
#include <string>
-void f(const std::string &s) { s.begin(); }
+void f(const std::string &s) { (void)s.begin(); }
#include <vector>
-void AppendTo(const std::vector<char> &v) { v.begin(); }
+void AppendTo(const std::vector<char> &v) { (void)v.begin(); }
int main() {}
diff --git a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp
index d2ad79af66f..71b0eaca737 100644
--- a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp
+++ b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.nonmember/make_move_iterator.pass.cpp
@@ -43,8 +43,8 @@ int main()
}
{
int a[] = {1,2,3,4};
- std::make_move_iterator(a+4);
- std::make_move_iterator(a); // test for LWG issue 2061
+ (void)std::make_move_iterator(a+4);
+ (void)std::make_move_iterator(a); // test for LWG issue 2061
}
#if TEST_STD_VER > 14
OpenPOWER on IntegriCloud