aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
blob: 5eac795aae282b5485fbab10a512f7cf094c4488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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;
}