blob: 57047ec3687d7974f92211335b7b7178e70f1d81 [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
#include <stdlib.h>
struct StructType {
int a;
int *b;
};
void func() {
int *tmp = (int*) malloc(sizeof(int));
struct StructType* s1 = (struct StructType*) malloc(sizeof(struct StructType));
s1->a = 10;
s1->b = tmp;
int *c = &(s1->a);
struct StructType s2 = *s1;
}