Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/pr39423-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR target/39423 */ /* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O2" } { "" } } */ int foo (const char *name, int nmlen, char *flags) { const char *nonspc; int len, n, lfn; int needlfn[2], dotspc[2]; unsigned char locale[2]; for (nonspc = &name[nmlen - 1]; nonspc >= name && *nonspc == ' '; ++n) { if (!nmlen) { needlfn[name >= nonspc] = !0, dotspc[n != 0] = locale[0], --n, name += len, nmlen -= len; } } if (!lfn && ((dotspc[0] == ' ' && !(len & 0x0010)) || dotspc[0] == '.')) return 22; if (!(needlfn[0] || needlfn[1])) *flags |= 0x02; }