]> granicus.if.org Git - clang/commitdiff
Modify test case comments.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 18 Jun 2009 06:49:35 +0000 (06:49 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 18 Jun 2009 06:49:35 +0000 (06:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73691 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/casts.c

index c5fcdd92e1c66ed0e38737d6c475afafa18ed276..eac0bd3a0113e0854bc7cf2bf853295b570a26e9 100644 (file)
@@ -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.
 }