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
2002-05-10 David S. Miller <davem@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
ptr-arith-1.c
blob
46162b8964d8b01937ade4d12fa42da62a16150f
1
char
*
2
f
(
char
*
s
,
unsigned int
i
)
3
{
4
return
&
s
[
i
+
3
-
1
];
5
}
6
7
main
()
8
{
9
char
*
str
=
"abcdefghijkl"
;
10
char
*
x2
=
f
(
str
,
12
);
11
if
(
str
+
14
!=
x2
)
12
abort
();
13
exit
(
0
);
14
}