repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix unused warnings.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr7284-1.c
blob
de0057cebb0e8dc665fe6ea9c1930b6de8562edf
1
/* Signed left-shift is implementation-defined in C89 (and see
2
DR#081), not undefined. Bug 7284 from Al Grant (AlGrant at
3
myrealbox.com). */
4
5
/* { dg-options "-std=c89" } */
6
7
extern
void
abort
(
void
);
8
extern
void
exit
(
int
);
9
10
int
11
f
(
int
n
)
12
{
13
return
(
n
<<
24
) / (
1
<<
23
);
14
}
15
16
volatile
int
x
=
128
;
17
18
int
19
main
(
void
)
20
{
21
if
(
f
(
x
) != -
256
)
22
abort
();
23
exit
(
0
);
24
}