Make sure to check the value of the constant expression, as suggested by Daniel.

llvm-svn: 65021
This commit is contained in:
Anders Carlsson 2009-02-19 06:19:15 +00:00
parent 3852519eca
commit 0bbcfa6bb9
1 changed files with 1 additions and 1 deletions

View File

@ -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);