Add test case for array and struct variable lvalue evaluation.

llvm-svn: 57670
This commit is contained in:
Zhongxing Xu 2008-10-17 05:19:52 +00:00
parent 10549c29a8
commit 0dd213f8f5
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// RUN: clang -checker-simple -verify %s
struct s {};
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
}