[cfe-commits] [PATCH] Convert ad-hoc assertions in test/SemaCXX/nullptr.cpp to static_assert
Richard Smith
richard at metafoo.co.uk
Tue Feb 14 16:11:56 PST 2012
LGTM.
On Tue, Feb 14, 2012 at 3:37 PM, Dmitri Gribenko <gribozavr at gmail.com>wrote:
> Hi,
>
> Attached patch converts `int array[expr ? -1 : 1]' assertions in C++11
> test to static_assert.
>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120214/05257e11/attachment.html>
More information about the cfe-commits
mailing list