From: Zhongxing Xu Date: Thu, 18 Jun 2009 06:49:35 +0000 (+0000) Subject: Modify test case comments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59c03ff2a686baa88a2e69c7f6fdf1a36b716190;p=clang Modify test case comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73691 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/casts.c b/test/Analysis/casts.c index c5fcdd92e1..eac0bd3a01 100644 --- a/test/Analysis/casts.c +++ b/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. }