[libcxx] r322528 - Actually CALL the constexpr tests.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 18:11:13 PST 2018


Author: marshall
Date: Mon Jan 15 18:11:13 2018
New Revision: 322528

URL: http://llvm.org/viewvc/llvm-project?rev=322528&view=rev
Log:
Actually CALL the constexpr tests.

Modified:
    libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
    libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp

Modified: libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch.pass.cpp Mon Jan 15 18:11:13 2018
@@ -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
 }

Modified: libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.nonmodifying/mismatch/mismatch_pred.pass.cpp Mon Jan 15 18:11:13 2018
@@ -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
 }




More information about the cfe-commits mailing list