[cfe-commits] r150243 - /cfe/trunk/test/SemaCXX/constexpr-nqueens.cpp

Richard Smith richard-llvm at metafoo.co.uk
Fri Feb 10 02:55:13 PST 2012


Author: rsmith
Date: Fri Feb 10 04:55:13 2012
New Revision: 150243

URL: http://llvm.org/viewvc/llvm-project?rev=150243&view=rev
Log:
Test cleanup: prefer static_assert to handmade alternative.

Modified:
    cfe/trunk/test/SemaCXX/constexpr-nqueens.cpp

Modified: cfe/trunk/test/SemaCXX/constexpr-nqueens.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/constexpr-nqueens.cpp?rev=150243&r1=150242&r2=150243&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/constexpr-nqueens.cpp (original)
+++ cfe/trunk/test/SemaCXX/constexpr-nqueens.cpp Fri Feb 10 04:55:13 2012
@@ -62,7 +62,7 @@
     *p == 0 ? true :
     false;
 }
-constexpr bool check = q8.check(
+static_assert(q8.check(
     "o-------\n"
     "------o-\n"
     "----o---\n"
@@ -70,7 +70,4 @@
     "-o------\n"
     "---o----\n"
     "-----o--\n"
-    "--o-----\n");
-
-typedef int check_it[1];
-typedef int check_it[check];
+    "--o-----\n"), "");





More information about the cfe-commits mailing list