From a38c495f2239c4750a4d89d9d0343f3755f99acd Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 16 Jan 2018 02:11:13 +0000 Subject: Actually CALL the constexpr tests. llvm-svn: 322528 --- .../test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp | 4 ++++ .../std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'libcxx/test/std/algorithms/alg.nonmodifying') diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp index f298bae9690..fd83cbcb423 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp @@ -86,4 +86,8 @@ int main() assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib+2)) == (std::pair(II(ia+2), II(ib+2)))); #endif + +#if TEST_STD_VER > 17 + static_assert(test_constexpr()); +#endif } 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(ia+2,ib+2))); #endif + +#if TEST_STD_VER > 17 + static_assert(test_constexpr()); +#endif } -- cgit v1.2.3