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.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20080506-1.c
blob
4f6d6d81a774e401ec6494da3031083eaf327477
1
/* PR middle-end/36137 */
2
extern
void
abort
(
void
);
3
4
#define MIN(a, b) ((a) < (b) ? (a) : (b))
5
#define MAX(a, b) ((a) > (b) ? (a) : (b))
6
7
int
8
main
()
9
{
10
unsigned int
u
;
11
int
i
= -
1
;
12
13
u
=
MAX
((
unsigned int
)
MAX
(
i
,
0
),
1
);
14
if
(
u
!=
1
)
15
abort
();
16
17
u
=
MIN
((
unsigned int
)
MAX
(
i
,
0
), (
unsigned int
)
i
);
18
if
(
u
!=
0
)
19
abort
();
20
return
0
;
21
}