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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr25310.c
blob
71081d821112265a221ea67e54270a969f87c0d3
1
2
/* Prevent spurious test failures on 16-bit targets. */
3
#if __INT_MAX__ >= 2147483647L
4
5
extern
int
f
(
char
*,
int
);
6
7
void
test
(
void
)
8
{
9
char
buffer
[
65536
];
10
char
*
bufptr
;
11
char
*
bufend
;
12
int
bytes
;
13
14
bufptr
=
buffer
;
15
bufend
=
buffer
+
sizeof
(
buffer
) -
1
;
16
17
while
((
bytes
=
f
(
bufptr
,
bufend
-
bufptr
)) >
0
)
18
bufptr
+=
bytes
;
19
}
20
21
#endif
22