Add random array and struct test code for SCA.
llvm-svn: 58085
This commit is contained in:
parent
5043549666
commit
d2f0c7b37b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue