repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git]
/
validation
/
linear
/
degen-array.c
blob
32230dde3fd06885763d05faef2bb1babb22fea0
1
extern
int
a
[
3
];
2
3
int
(*
fa
(
int
i
))[] {
return
&
a
; }
4
int
*
f0
(
int
i
) {
return
&
a
[
0
]; }
5
int
*
fd
(
int
i
) {
return
a
; }
6
7
/*
8
* check-name: degen-array
9
* check-command: test-linearize -m64 -Wno-decl $file
10
* check-assert: sizeof(void *) == 8
11
*
12
* check-output-start
13
fa:
14
.L0:
15
<entry-point>
16
ret.64 a
17
18
19
f0:
20
.L2:
21
<entry-point>
22
ret.64 a
23
24
25
fd:
26
.L4:
27
<entry-point>
28
ret.64 a
29
30
31
* check-output-end
32
*/