forked from OSchip/llvm-project
15 lines
169 B
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;
|
||
|
}
|