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
tree-optimization/111233 - loop splitting miscompile
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr91126.c
blob
8e34815b9a78709d385b108d04e22ea125d51432
1
/* { dg-do run } */
2
3
struct
S
4
{
5
__INT32_TYPE__ a
:
24
;
6
__INT32_TYPE__ b
:
8
;
7
}
s
;
8
9
int
10
main
()
11
{
12
s
.
a
=
0xfefefe
;
13
s
.
b
=
0xfe
;
14
unsigned char
c
;
15
c
= ((
unsigned char
*)&
s
)[
0
];
16
if
(
c
!=
0xfe
)
17
__builtin_abort
();
18
c
= ((
unsigned char
*)&
s
)[
1
];
19
if
(
c
!=
0xfe
)
20
__builtin_abort
();
21
c
= ((
unsigned char
*)&
s
)[
2
];
22
if
(
c
!=
0xfe
)
23
__builtin_abort
();
24
c
= ((
unsigned char
*)&
s
)[
3
];
25
if
(
c
!=
0xfe
)
26
__builtin_abort
();
27
return
0
;
28
}