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 tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20060102-1.c
blob
04b6a67d928a0231979fc52ab5f7fe9bf4a92458
1
extern
void
abort
();
2
3
int
f
(
int
x
)
4
{
5
return
(
x
>> (
sizeof
(
x
) *
__CHAR_BIT__
-
1
)) ? -
1
:
1
;
6
}
7
8
volatile
int
one
=
1
;
9
int
main
(
void
)
10
{
11
/* Test that the function above returns different values for
12
different signs. */
13
if
(
f
(
one
) ==
f
(-
one
))
14
abort
();
15
return
0
;
16
}
17