summaryrefslogtreecommitdiffstats
path: root/libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp')
-rw-r--r--libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp b/libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
index fe678541382..78f795afae4 100644
--- a/libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
+++ b/libcxx/test/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
@@ -36,6 +36,14 @@ int main()
input_iterator<const int*>(ia+3),
input_iterator<const int*>(ib+3))));
+ assert(std::mismatch(comma_iterator<const int*>(ia),
+ comma_iterator<const int*>(ia + sa),
+ comma_iterator<const int*>(ib)) ==
+ (std::pair<comma_iterator<const int*>,
+ comma_iterator<const int*> >(
+ comma_iterator<const int*>(ia+3),
+ comma_iterator<const int*>(ib+3))));
+
#ifdef HAS_FOUR_ITERATOR_VERSION
assert(std::mismatch(input_iterator<const int*>(ia),
input_iterator<const int*>(ia + sa),
OpenPOWER on IntegriCloud