diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-04-28 19:17:36 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-04-28 19:17:36 +0000 |
commit | ad02d7debd03ff275ac8ea27891a4ecccdb78068 (patch) | |
tree | 582f9362f324510c5e001cf37b57bb76b409ab7e /test/Sema/const-eval.c | |
parent | e721f95069d42b899c20c1caabdc6184dd42b820 (diff) | |
download | clang-ad02d7debd03ff275ac8ea27891a4ecccdb78068.tar.gz |
PR4097: add logic to Evaluate to handle pointer equality comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r-- | test/Sema/const-eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c index ce1aacd274..79f96b9c39 100644 --- a/test/Sema/const-eval.c +++ b/test/Sema/const-eval.c @@ -63,3 +63,5 @@ static struct a V2 = (struct a)(struct a){ 1, 2}; static const struct a V1 = (struct a){ 1, 2}; EVAL_EXPR(30, (int)(_Complex float)((1<<30)-1) == (1<<30) ? 1 : -1) +EVAL_EXPR(31, (int*)0 == (int*)0 ? 1 : -1) +EVAL_EXPR(32, (int*)0 != (int*)0 ? -1 : 1) |