llvm-project/clang/test/Analysis/array-struct.c

15 lines
169 B
C

// RUN: clang -checker-simple -verify %s
struct s {};
void f(void) {
int a[10];
int (*p)[10];
p = &a;
(*p)[3] = 1;
struct s d;
struct s *q;
q = &d;
}