aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-19 06:19:15 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-19 06:19:15 +0000
commite2f0e96e9b34ed7fb0d44f6b9288b9fcf5548ba3 (patch)
treef1997d3ed3ac5cbaf9d30012913ffc4e85e2bf98 /test/Sema/const-eval.c
parent232350d4faf46ec38d5ff60e11505f9c4fa9535b (diff)
Make sure to check the value of the constant expression, as suggested by Daniel.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r--test/Sema/const-eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index a56504151c..4fd2a55851 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -33,4 +33,4 @@ _Complex float g16 = (1.0f + 1.0fi);
// ?: 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);