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
* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20030323-1.c
blob
8a563ec5eb21f09740b32c94c1145cb0f37a10fa
1
/* { dg-do run } */
2
3
/* PR c/8224 */
4
/* Contributed by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> */
5
6
extern
void
abort
(
void
);
7
8
unsigned
f
(
int
x
)
9
{
10
return
(
unsigned
) (
x
/
2
) /
2
;
11
}
12
13
unsigned
f1
(
int
x
)
14
{
15
unsigned
xx
=
x
/
2
;
16
return
xx
/
2
;
17
}
18
19
int
main
()
20
{
21
if
(
f1
(-
5
) !=
f
(-
5
))
22
abort
();
23
return
0
;
24
}