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
2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr39855.c
blob
6d75c38a907a7f2b5941bade58b988ea1b2f101f
1
/* PR c/39855 */
2
/* { dg-do run { target { int32plus } } } */
3
4
extern
void
abort
(
void
);
5
6
int
i
,
j
,
k
;
7
8
int
9
foo
(
void
)
10
{
11
return
++
i
;
12
}
13
14
int
15
main
()
16
{
17
if
(
__CHAR_BIT__
!=
8
||
sizeof
(
int
) !=
4
)
18
return
0
;
19
j
=
foo
() <<
30
<<
2
;
20
k
= (
unsigned
)
foo
() >>
16
>>
16
;
21
if
(
i
!=
2
||
j
!=
0
||
k
!=
0
)
22
abort
();
23
return
0
;
24
}