summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/991213-2.c
blob: 98385d562632ea5b37ccbc99831a629c80e6b0e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef long		__kernel_time_t;
typedef __kernel_time_t		time_t;
time2(
    void (* const  (funcp)(time_t)),
    const long offset, int * const okayp)
{
	register int			bits;
	time_t				t;
	for (bits = 0, t = 1; t > 0; ++bits, t <<= 1)
		;
	t = (t < 0) ? 0 : ((time_t) 1 << bits);
	for ( ; ; ) {
		(*funcp)((time_t)&t);
	}
}