diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-16 02:11:13 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-16 02:11:13 +0000 |
commit | a38c495f2239c4750a4d89d9d0343f3755f99acd (patch) | |
tree | 1e16df61cf90d1bac97d6148ecb31404bb2b14cb /libcxx/test/std | |
parent | 6538e28d5dbc11f58392eb75144d4a2d31e66477 (diff) | |
download | bcm5719-llvm-a38c495f2239c4750a4d89d9d0343f3755f99acd.tar.gz bcm5719-llvm-a38c495f2239c4750a4d89d9d0343f3755f99acd.zip |
Actually CALL the constexpr tests.
llvm-svn: 322528
Diffstat (limited to 'libcxx/test/std')
-rw-r--r-- | libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp | 4 | ||||
-rw-r--r-- | libcxx/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
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, II>(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<int*,int*>(ia+2,ib+2))); #endif + +#if TEST_STD_VER > 17 + static_assert(test_constexpr()); +#endif } |