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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
bf-pack-1.c
blob
ca3b1db763b50604774d5a8176362d9968e0ea4a
1
struct
foo
2
{
3
unsigned
half
:
16
;
4
unsigned long
whole
:
32
__attribute__
((
packed
));
5
};
6
7
f
(
struct
foo
*
q
)
8
{
9
if
(
q
->
half
!=
0x1234
)
10
abort
();
11
if
(
q
->
whole
!=
0x56789abc
L
)
12
abort
();
13
}
14
15
main
()
16
{
17
struct
foo bar
;
18
19
bar
.
half
=
0x1234
;
20
bar
.
whole
=
0x56789abc
L
;
21
f
(&
bar
);
22
exit
(
0
);
23
}