Actually CALL the constexpr tests.

llvm-svn: 322528
This commit is contained in:
Marshall Clow 2018-01-16 02:11:13 +00:00
parent 6538e28d5d
commit a38c495f22
2 changed files with 8 additions and 0 deletions

View File

@ -86,4 +86,8 @@ int main()
assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib+2)) assert(std::mismatch(II(ia), II(ia + sa), II(ib), II(ib+2))
== (std::pair<II, II>(II(ia+2), II(ib+2)))); == (std::pair<II, II>(II(ia+2), II(ib+2))));
#endif #endif
#if TEST_STD_VER > 17
static_assert(test_constexpr());
#endif
} }

View File

@ -111,4 +111,8 @@ int main()
assert(std::mismatch(ia, ia + sa, ib, ib + 2, EQ()) == assert(std::mismatch(ia, ia + sa, ib, ib + 2, EQ()) ==
(std::pair<int*,int*>(ia+2,ib+2))); (std::pair<int*,int*>(ia+2,ib+2)));
#endif #endif
#if TEST_STD_VER > 17
static_assert(test_constexpr());
#endif
} }