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
/
20071211-1.c
blob
4a4f1fefc90675272b549f1790c3252ba4907987
1
extern
void
abort
()
__attribute__
((
noreturn
));
2
3
struct
s
4
{
5
unsigned long long
f1
:
40
;
6
#if(__SIZEOF_INT__ >= 4)
7
unsigned int
f2
:
24
;
8
#else
9
unsigned long int
f2
:
24
;
10
#endif
11
}
sv
;
12
13
int
main
()
14
{
15
int
f2
;
16
sv
.
f2
= (
1
<<
24
) -
1
;
17
__asm__
volatile
(
""
: : :
"memory"
);
18
++
sv
.
f2
;
19
f2
=
sv
.
f2
;
20
if
(
f2
!=
0
)
21
abort
();
22
return
0
;
23
}