summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/casts.c
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-06-19 06:00:32 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-06-19 06:00:32 +0000
commit54fb536b5c191317a4544e26964189a67a09cdcf (patch)
tree07a9297354fa14f4fcd3bf810873e6ed2a7c0fe1 /clang/test/Analysis/casts.c
parent77585a24ac481c5773d96f561840b04e81b22161 (diff)
downloadbcm5719-llvm-54fb536b5c191317a4544e26964189a67a09cdcf.tar.gz
bcm5719-llvm-54fb536b5c191317a4544e26964189a67a09cdcf.zip
A further step of r73690: associate the cast-to type with the created symbol,
because the type of the symbol is used to create the default range. We need the sign to be consistent. llvm-svn: 73756
Diffstat (limited to 'clang/test/Analysis/casts.c')
-rw-r--r--clang/test/Analysis/casts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Analysis/casts.c b/clang/test/Analysis/casts.c
index d47184fb5f5..5e4222bc84b 100644
--- a/clang/test/Analysis/casts.c
+++ b/clang/test/Analysis/casts.c
@@ -25,6 +25,8 @@ int f1(struct s **pval) {
pval = &(t->value);
tbool = (int *)pval; // Should record the cast-to type here.
char c = (unsigned char) *tbool; // Should use cast-to type to create symbol.
+ if (*tbool == -1)
+ 3;
}
void f2(const char *str) {
OpenPOWER on IntegriCloud