summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-06-18 06:49:35 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-06-18 06:49:35 +0000
commitb21175ccbe618c9bac795c13a4bbdba27ed7631a (patch)
tree089d260af3f0a2177e9284a2a4fe4faa43664a10 /clang
parentcea657807873815709ab4db9c76f31334af6dbd8 (diff)
downloadbcm5719-llvm-b21175ccbe618c9bac795c13a4bbdba27ed7631a.tar.gz
bcm5719-llvm-b21175ccbe618c9bac795c13a4bbdba27ed7631a.zip
Modify test case comments.
llvm-svn: 73691
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Analysis/casts.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/Analysis/casts.c b/clang/test/Analysis/casts.c
index c5fcdd92e1c..eac0bd3a011 100644
--- a/clang/test/Analysis/casts.c
+++ b/clang/test/Analysis/casts.c
@@ -19,14 +19,11 @@ struct s {
struct s *value;
};
-// ElementRegion and cast-to pointee type may be of the same size:
-// 'struct s **' and 'int'.
-
int f1(struct s **pval) {
int *tbool = ((void*)0);
struct s *t = *pval;
pval = &(t->value);
- tbool = (int *)pval;
- char c = (unsigned char) *tbool;
+ tbool = (int *)pval; // Should record the cast-to type here.
+ char c = (unsigned char) *tbool; // Should use cast-to type to create symbol.
}
OpenPOWER on IntegriCloud