summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/struct-init.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-06-09 05:05:07 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-06-09 05:05:07 +0000
commite6e0f23a29223d4c51a14efd0c0af3fe58261672 (patch)
tree7dc04dad7486cec24c87237417b4d6ff67ff7d6b /clang/test/CodeGen/struct-init.c
parente30c937df3f3ca2aa1de0fafebd24c9133f4f197 (diff)
downloadbcm5719-llvm-e6e0f23a29223d4c51a14efd0c0af3fe58261672.tar.gz
bcm5719-llvm-e6e0f23a29223d4c51a14efd0c0af3fe58261672.zip
Add code to make test/CodeGen/struct-init.c work correctly without the
pointer cast hack currently in isIntegerConstantExpr (in lib/AST/Expr.cpp). Also removes an odd test that even gcc doesn't accept. The reason the pointer cast hack is relevant here is that it makes Sema end up misinterpreting the relevant expression as a null pointer constant. The reason for this patch is that I plan to remove the pointer cast hack sometime soon because it causes strange issues, especially in its current form; see my recent email to cfe-dev "[PATCH] add constant expression evaluation to the AST and fix PR2413". llvm-svn: 52120
Diffstat (limited to 'clang/test/CodeGen/struct-init.c')
-rw-r--r--clang/test/CodeGen/struct-init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/test/CodeGen/struct-init.c b/clang/test/CodeGen/struct-init.c
index 5b815de3998..02cbee06b0c 100644
--- a/clang/test/CodeGen/struct-init.c
+++ b/clang/test/CodeGen/struct-init.c
@@ -9,5 +9,4 @@ char a;
const zend_ini_entry ini_entries[] = {
{ ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
- { ((long long*)&a - (long long*)(void*)2)},
};
OpenPOWER on IntegriCloud