8sa1-gcc/gcc/testsuite/gcc.c-torture/compile/930510-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

19 lines
479 B
C

typedef long time_t;
static __const int mon_lengths[2][12] = {
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
};
static time_t
f (janfirst, year, rulep, offset)
__const time_t janfirst;
__const int year;
register __const struct rule * __const rulep;
__const long offset;
{
register int leapyear;
register time_t value;
register int i;
value += mon_lengths[leapyear][i] * ((long) (60 * 60) * 24);
}