Add random array and struct test code for SCA.

llvm-svn: 58085
This commit is contained in:
Zhongxing Xu 2008-10-24 08:51:58 +00:00
parent 5043549666
commit d2f0c7b37b
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,9 @@
// RUN: clang -checker-simple -verify %s
struct s {};
struct s {
int data;
int data_array[10];
};
void f(void) {
int a[10];
@ -11,4 +14,6 @@ void f(void) {
struct s d;
struct s *q;
q = &d;
q->data = 3;
d.data_array[9] = 17;
}