forked from OSchip/llvm-project
Add test case for array and struct variable lvalue evaluation.
llvm-svn: 57670
This commit is contained in:
parent
10549c29a8
commit
0dd213f8f5
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue