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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20140622-1.c
blob
d3aa66bb59e8961aa02967c53209ee04296f6cfb
1
unsigned
p
;
2
3
long
__attribute__
((
noinline
,
noclone
))
4
test
(
unsigned
a
)
5
{
6
return
(
long
)(
p
+
a
) - (
long
)
p
;
7
}
8
9
int
10
main
()
11
{
12
p
= (
unsigned
) -
2
;
13
if
(
test
(
0
) !=
0
)
14
__builtin_abort
();
15
if
(
test
(
1
) !=
1
)
16
__builtin_abort
();
17
if
(
test
(
2
) != -(
long
)(
unsigned
)-
2
)
18
__builtin_abort
();
19
p
= (
unsigned
) -
1
;
20
if
(
test
(
0
) !=
0
)
21
__builtin_abort
();
22
if
(
test
(
1
) != -(
long
)(
unsigned
)-
1
)
23
__builtin_abort
();
24
if
(
test
(
2
) != -(
long
)(
unsigned
)-
2
)
25
__builtin_abort
();
26
return
0
;
27
}