Tolerate even more [[nodiscard]] in the STL. Reviewed as https://reviews.llvm.org/D39080
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@318277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,7 +66,7 @@ test()
|
||||
assert(std::search_n(Iter(ic), Iter(ic+sc), 4, 0) == Iter(ic+sc));
|
||||
|
||||
// Check that we properly convert the size argument to an integral.
|
||||
std::search_n(Iter(ic), Iter(ic+sc), UserDefinedIntegral<unsigned>(0), 0);
|
||||
(void)std::search_n(Iter(ic), Iter(ic+sc), UserDefinedIntegral<unsigned>(0), 0);
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
@@ -142,7 +142,7 @@ test()
|
||||
count_equal::count = 0;
|
||||
|
||||
// Check that we properly convert the size argument to an integral.
|
||||
std::search_n(Iter(ic), Iter(ic+sc), UserDefinedIntegral<unsigned>(4), 0, count_equal());
|
||||
(void)std::search_n(Iter(ic), Iter(ic+sc), UserDefinedIntegral<unsigned>(4), 0, count_equal());
|
||||
count_equal::count = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user