annotate gcc/testsuite/gcc.c-torture/compile/pr25310.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1 /* { dg-skip-if "Array too big" { "pdp11-*-*" } { "-mint32" } } */
111
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* Prevent spurious test failures on 16-bit targets. */
kono
parents:
diff changeset
4 #if __INT_MAX__ >= 2147483647L
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 extern int f (char *, int);
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 void test (void)
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 char buffer[65536];
kono
parents:
diff changeset
11 char *bufptr;
kono
parents:
diff changeset
12 char *bufend;
kono
parents:
diff changeset
13 int bytes;
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 bufptr = buffer;
kono
parents:
diff changeset
16 bufend = buffer + sizeof(buffer) - 1;
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 while ((bytes = f (bufptr, bufend - bufptr)) > 0)
kono
parents:
diff changeset
19 bufptr += bytes;
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 #endif
kono
parents:
diff changeset
23