OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920730-1.c] - Rev 297

Compare with Previous | Blame | View Log

/* 920730-1.c */
#include <limits.h>
f1()
{
	int b=INT_MIN;
	return b>=INT_MIN;
}
 
f2()
{
	int b=INT_MIN+1;
	return b>= (unsigned)(INT_MAX+2);
}
 
f3()
{
	int b=INT_MAX;
	return b>=INT_MAX;
}
 
f4()
{
	int b=-1;
	return b>=UINT_MAX;
}
 
main ()
{
	if((f1()&f2()&f3()&f4())!=1)
		abort();
		exit(0);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.