aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-18 00:47:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-18 00:47:45 +0000
commit2d6744ff04c1690a1485178d550d2fab84a0270b (patch)
tree226683ac647b25752dccba33b4f96882d10ee876 /test/Sema/const-eval.c
parenta135975d4257ccc83f13b607b29d882bb00c80b6 (diff)
isICE was evaluating ?: incorrectly with missing-gcc-LHS extension.
Add assert to isICE that, on success, result must be the same as EvaluateAsInt()... this enforces a minimum level of sanity. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r--test/Sema/const-eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index 71f76228d1..7307aea791 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -29,3 +29,6 @@ void f()
// FIXME: Turn into EVAL_EXPR test once we have more folding.
_Complex float g16 = (1.0f + 1.0fi);
+
+// ?: in constant expressions.
+int g17[(3?:1) - 2];