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
AArch64: Remove duplicated addr_cost tables
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
961125-1.c
blob
bd4bf0eb8ee10a1e1f64c3340dd9adcb23a96a14
1
void
abort
(
void
);
2
void
exit
(
int
);
3
4
static char
*
5
begfield
(
int
tab
,
char
*
ptr
,
char
*
lim
,
int
sword
,
int
schar
)
6
{
7
if
(
tab
)
8
{
9
while
(
ptr
<
lim
&&
sword
--)
10
{
11
while
(
ptr
<
lim
&& *
ptr
!=
tab
)
12
++
ptr
;
13
if
(
ptr
<
lim
)
14
++
ptr
;
15
}
16
}
17
else
18
{
19
while
(
1
)
20
;
21
}
22
23
if
(
ptr
+
schar
<=
lim
)
24
ptr
+=
schar
;
25
26
return
ptr
;
27
}
28
29
int
30
main
(
void
)
31
{
32
char
*
s
=
":ab"
;
33
char
*
lim
=
s
+
3
;
34
if
(
begfield
(
':'
,
s
,
lim
,
1
,
1
) !=
s
+
2
)
35
abort
();
36
exit
(
0
);
37
}