[cfe-commits] r65021 - /cfe/trunk/test/Sema/const-eval.c
Anders Carlsson
andersca at mac.com
Wed Feb 18 22:19:15 PST 2009
Author: andersca
Date: Thu Feb 19 00:19:15 2009
New Revision: 65021
URL: http://llvm.org/viewvc/llvm-project?rev=65021&view=rev
Log:
Make sure to check the value of the constant expression, as suggested by Daniel.
Modified:
cfe/trunk/test/Sema/const-eval.c
Modified: cfe/trunk/test/Sema/const-eval.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/const-eval.c?rev=65021&r1=65020&r2=65021&view=diff
==============================================================================
--- cfe/trunk/test/Sema/const-eval.c (original)
+++ cfe/trunk/test/Sema/const-eval.c Thu Feb 19 00:19:15 2009
@@ -33,4 +33,4 @@
// ?: in constant expressions.
int g17[(3?:1) - 2];
-EVAL_EXPR(18, (int)((void*)10 + 10));
+EVAL_EXPR(18, ((int)((void*)10 + 10)) == 20 ? 1 : -1);
More information about the cfe-commits
mailing list