summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/casts.c
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-10-14 06:05:09 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-10-14 06:05:09 +0000
commit969242948f2b09e83c8183b4f5bc13480a835e16 (patch)
treed49c5e5f09dceaaef3031410dbd41005f0190a78 /clang/test/Analysis/casts.c
parent4f8a2e22c0e49b871288fefa44ddffc7833ff15c (diff)
downloadbcm5719-llvm-969242948f2b09e83c8183b4f5bc13480a835e16.tar.gz
bcm5719-llvm-969242948f2b09e83c8183b4f5bc13480a835e16.zip
Add comments to test.
llvm-svn: 84078
Diffstat (limited to 'clang/test/Analysis/casts.c')
-rw-r--r--clang/test/Analysis/casts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/casts.c b/clang/test/Analysis/casts.c
index 19ea6af1b72..ae51ffb69aa 100644
--- a/clang/test/Analysis/casts.c
+++ b/clang/test/Analysis/casts.c
@@ -30,9 +30,9 @@ void f1(struct s **pval) {
int *tbool = ((void*)0);
struct s *t = *pval;
pval = &(t->value);
- tbool = (int *)pval; // Should record the cast-to type here.
+ tbool = (int *)pval; // use the cast-to type 'int *' to create element region.
char c = (unsigned char) *tbool; // Should use cast-to type to create symbol.
- if (*tbool == -1)
+ if (*tbool == -1) // here load the element region with the correct type 'int'
(void)3;
}
OpenPOWER on IntegriCloud