Test cleanup: prefer static_assert to handmade alternative.

llvm-svn: 150243
This commit is contained in:
Richard Smith 2012-02-10 10:55:13 +00:00
parent 0247b99171
commit d98937b011
1 changed files with 2 additions and 5 deletions

View File

@ -62,7 +62,7 @@ constexpr bool Board::check(const char *p, int Row, int Col) {
*p == 0 ? true :
false;
}
constexpr bool check = q8.check(
static_assert(q8.check(
"o-------\n"
"------o-\n"
"----o---\n"
@ -70,7 +70,4 @@ constexpr bool check = q8.check(
"-o------\n"
"---o----\n"
"-----o--\n"
"--o-----\n");
typedef int check_it[1];
typedef int check_it[check];
"--o-----\n"), "");