mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-06 01:19:28 +00:00
Add test case for array and struct variable lvalue evaluation.
llvm-svn: 57670
This commit is contained in:
parent
10549c29a8
commit
0dd213f8f5
14
clang/test/Analysis/array-struct.c
Normal file
14
clang/test/Analysis/array-struct.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user