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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20020904-1.c
blob
24eeb0cb0a0b3151c3601919e590df36ed7459b7
1
/* PR c/7102 */
2
3
/* Verify that GCC zero-extends integer constants
4
in unsigned binary operations. */
5
6
typedef
unsigned char
u8
;
7
8
u8
fun
(
u8 y
)
9
{
10
u8 x
=((
u8
)
255
)/
y
;
11
return
x
;
12
}
13
14
int
main
(
void
)
15
{
16
if
(
fun
((
u8
)
2
) !=
127
)
17
abort
();
18
return
0
;
19
}