Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr39423-1.c

raw
1 /* PR target/39423 */
2
3 int
4 foo (const char *name, int nmlen, char *flags)
5 {
6 const char *nonspc;
7 int len, n, lfn;
8 int needlfn[2], dotspc[2];
9 unsigned char locale[2];
10 for (nonspc = &name[nmlen - 1]; nonspc >= name && *nonspc == ' '; ++n)
11 {
12 if (!nmlen)
13 {
14 needlfn[name >= nonspc] = !0, dotspc[n != 0] =
15 locale[0], --n, name += len, nmlen -= len;
16 }
17 }
18 if (!lfn && ((dotspc[0] == ' ' && !(len & 0x0010)) || dotspc[0] == '.'))
19 return 22;
20 if (!(needlfn[0] || needlfn[1]))
21 *flags |= 0x02;
22 }