Skip to content
Snippets Groups Projects
Commit 72e1682b authored by Zhongxing Xu's avatar Zhongxing Xu
Browse files

Add random array and struct test code for SCA.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58085 91177308-0d34-0410-b5e6-96231b3b80d8
parent b451bc19
No related branches found
No related tags found
No related merge requests found
// 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment