commit | 4fbb52cc2183a8f4a7a91a07fe1aebf9e979b132 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Thu Feb 19 04:55:58 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Thu Feb 19 04:55:58 2009 +0000 |
tree | 7cf04fdb98d35ee471c61f890ff1aa38454c88c3 | |
parent | 5dbd39414fefbf2974a3bfb420a315e19910665a [diff] [blame] |
Handle the GNU void* and function pointer arithmetic extensions for constant expressions as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65013 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c index 7307aea..a565041 100644 --- a/test/Sema/const-eval.c +++ b/test/Sema/const-eval.c
@@ -32,3 +32,5 @@ // ?: in constant expressions. int g17[(3?:1) - 2]; + +EVAL_EXPR(18, (int)((void*)10 + 10));