blob: ecf16329c8d5771f4cf364b678141b103b24b14b [file] [log] [blame]
//--Make sure we can run DSA on it!
//RUN: clang %s -c -emit-llvm -o - | \
//RUN: dsaopt -dsa-bu -dsa-td -disable-output
//H, S, G, R, M
#include <stdlib.h>
struct StructType {
int a;
int *b;
};
void func() {
struct StructType *tmp = (struct StructType*) malloc(sizeof(struct StructType)*10);
int i;
for(i=0;i<10;i++) {
tmp[i].a = i;
}
struct StructType s2 = tmp[0];
int * c = s2.b;
}