Commit 3159b178 by Geoffrey Keating Committed by Geoffrey Keating

pr17133.c: New.

	* gcc.c-torture/execute/pr17133.c: New.
	* gcc.c-torture/compile/20050303-1.c: New.

From-SVN: r95865
parent 57a71826
2005-03-03 Geoffrey Keating <geoffk@apple.com>
* gcc.c-torture/execute/pr17133.c: New.
* gcc.c-torture/compile/20050303-1.c: New.
2005-03-04 David Billinghurst <David.Billinghurst@riotinto.com>
* gcc.dg/cpp/assert4.c: Fix for cygwin
......
void crc()
{
int toread;
long long nleft;
unsigned char buf[(128 * 1024)];
nleft = 0;
while (toread = (nleft < (2147483647 * 2U + 1U)) ? nleft: (2147483647 * 2U + 1U) )
;
}
extern void abort (void);
int foo = 0;
void *bar = 0;
unsigned int baz = 100;
void *pure_alloc ()
{
void *res;
while (1)
{
res = (void *) ((((unsigned int) (foo + bar))) & ~1);
foo += 2;
if (foo < baz)
return res;
foo = 0;
}
}
int main ()
{
pure_alloc ();
if (!foo)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment