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 c/42544
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr48197.c
blob
37812c07b0cc98d5f7bdae65f1067957acdbcfbf
1
/* PR c/48197 */
2
3
extern
void
abort
(
void
);
4
static int
y
=
0x8000
;
5
6
int
7
main
()
8
{
9
unsigned int
x
= (
short
)
y
;
10
if
(
sizeof
(
0LL
) ==
sizeof
(
0U
))
11
return
0
;
12
if
(
0LL
> (
0U
^ (
short
)-
0x8000
))
13
abort
();
14
if
(
0LL
> (
0U
^
x
))
15
abort
();
16
if
(
0LL
> (
0U
^ (
short
)
y
))
17
abort
();
18
if
((
0U
^ (
short
)-
0x8000
) <
0LL
)
19
abort
();
20
if
((
0U
^
x
) <
0LL
)
21
abort
();
22
if
((
0U
^ (
short
)
y
) <
0LL
)
23
abort
();
24
return
0
;
25
}