repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20030606-1.c
blob
51054d90a2557546a6fc8a42d3813c49b8de1c17
1
2
int
*
foo
(
int
*
x
,
int
b
)
3
{
4
5
*(
x
++) =
55
;
6
if
(
b
)
7
*(
x
++) =
b
;
8
9
return
x
;
10
}
11
12
main
()
13
{
14
int
a
[
5
];
15
16
memset
(
a
,
1
,
sizeof
(
a
));
17
18
if
(
foo
(
a
,
0
) -
a
!=
1
||
a
[
0
] !=
55
||
a
[
1
] !=
a
[
4
])
19
abort
();
20
21
memset
(
a
,
1
,
sizeof
(
a
));
22
23
if
(
foo
(
a
,
2
) -
a
!=
2
||
a
[
0
] !=
55
||
a
[
1
] !=
2
)
24
abort
();
25
26
exit
(
0
);
27
}