[PATCH] D49773: Add new file test/support/test_comparisons.h
Marshall Clow via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 24 19:02:14 PDT 2018
mclow.lists added a comment.
Usage looks like this:
AssertComparisons6AreNoexcept<month>();
AssertComparisons6ReturnBool<month>();
static_assert(testComparisons6Values<month>( 5U, 5U), "");
static_assert(testComparisons6Values<month>( 5U, 10U), "");
static_assert(testComparisons6Values<month>(10U, 5U), "");
https://reviews.llvm.org/D49773
More information about the cfe-commits
mailing list