Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
b451bc19423ba7e6339326f62c6c67e729537267
/
.
/
test
/
Analysis
/
array-struct.c
blob: 5eac795aae282b5485fbab10a512f7cf094c4488 [
file
] [
log
] [
blame
]
Zhongxing Xu
ef8b28e
2008-10-17 05:19:52 +0000
[
diff
] [
blame
]
1
// RUN: clang -checker-simple -verify %s
2
3
struct
s
{};
4
5
void
f
(
void
)
{
6
int
a
[
10
];
7
int
(*
p
)[
10
];
8
p
=
&
a
;
9
(*
p
)[
3
]
=
1
;
10
11
struct
s d
;
12
struct
s
*
q
;
13
q
=
&
d
;
14
}