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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr57344-1.c
blob
66893269efa5cd8ecd636a399594a9e84e2b85f9
1
/* PR middle-end/57344 */
2
3
struct
__attribute__
((
packed
))
S
4
{
5
int
a
:
11
;
6
#if __SIZEOF_INT__ * __CHAR_BIT__ >= 32
7
int
b
:
22
;
8
#else
9
int
b
:
13
;
10
#endif
11
char
c
;
12
int
:
0
;
13
}
s
[
2
];
14
int
i
;
15
16
__attribute__
((
noinline
,
noclone
))
void
17
foo
(
int
x
)
18
{
19
if
(
x
!= -
3161
)
20
__builtin_abort
();
21
asm
volatile
(
""
: : :
"memory"
);
22
}
23
24
int
25
main
()
26
{
27
struct
S t
= {
0
, -
3161L
};
28
s
[
1
] =
t
;
29
for
(;
i
<
1
;
i
++)
30
foo
(
s
[
1
].
b
);
31
return
0
;
32
}