repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-01-24 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr68143_1.c
blob
cbfbbc2458bf6865a33f7fbb30ed77014f9a07c1
1
#define NULL 0
2
3
struct
stuff
4
{
5
int
a
;
6
int
b
;
7
int
c
;
8
int
d
;
9
int
e
;
10
char
*
f
;
11
int
g
;
12
};
13
14
void
__attribute__
((
noinline
))
15
bar
(
struct
stuff
*
x
)
16
{
17
if
(
x
->
g
!=
2
)
18
__builtin_abort
();
19
}
20
21
int
22
main
(
int
argc
,
char
**
argv
)
23
{
24
struct
stuff x
= {
0
,
0
,
0
,
0
,
0
,
NULL
,
0
};
25
x
.
a
=
100
;
26
x
.
d
=
100
;
27
x
.
g
=
2
;
28
/* Struct should now look like {100, 0, 0, 100, 0, 0, 0, 2}. */
29
bar
(&
x
);
30
return
0
;
31
}