summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-16 02:11:13 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-16 02:11:13 +0000
commita38c495f2239c4750a4d89d9d0343f3755f99acd (patch)
tree1e16df61cf90d1bac97d6148ecb31404bb2b14cb /libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
parent6538e28d5dbc11f58392eb75144d4a2d31e66477 (diff)
downloadbcm5719-llvm-a38c495f2239c4750a4d89d9d0343f3755f99acd.tar.gz
bcm5719-llvm-a38c495f2239c4750a4d89d9d0343f3755f99acd.zip
Actually CALL the constexpr tests.
llvm-svn: 322528
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp')
-rw-r--r--libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
index bc05f19c04f..490309a81e7 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
@@ -111,4 +111,8 @@ int main()
assert(std::mismatch(ia, ia + sa, ib, ib + 2, EQ()) ==
(std::pair<int*,int*>(ia+2,ib+2)));
#endif
+
+#if TEST_STD_VER > 17
+ static_assert(test_constexpr());
+#endif
}
OpenPOWER on IntegriCloud