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
function_hooks/unwind: introduce return_implies_exact()
[smatch.git]
/
validation
/
linear
/
struct-init-full.c
blob
f1b03db71ecc593596b966f3a857be047bd2baff
1
struct
s
{
2
int
a
,
b
,
c
;
3
};
4
5
struct
s
s_init_all
(
int
a
)
6
{
7
struct
s s
= { .
a
=
a
, .
b
=
42
, .
c
=
123
, };
8
return
s
;
9
}
10
11
/*
12
* check-name: struct implicit init zero not needed
13
* check-command: test-linearize -Wno-decl $file
14
* check-known-to-fail
15
*
16
* check-output-start
17
s_init_all:
18
.L4:
19
<entry-point>
20
store.32 %arg1 -> 0[s]
21
store.32 $42 -> 4[s]
22
store.32 $123 -> 8[s]
23
load.96 %r8 <- 0[s]
24
ret.96 %r8
25
26
27
* check-output-end
28
*/