Commit a5e34caf by Andy Hutchinson Committed by Andy Hutchinson

re PR testsuite/35005 (New testcase execute/20071211-1.c assumes 32 bit integers)

	PR target/35005
	* execute/20071221-1.c: Adapt test for 16 bit int targets.
	* execute/pr35163.c: Ditto.

From-SVN: r134114
parent 02765a37
2008-04-08 Andy Hutchinson <hutchinsonandy@aim.com>
PR target/35005
* execute/20071221-1.c: Adapt test for 16 bit int targets.
* execute/pr35163.c: Ditto.
2008-04-08 Richard Guenther <rguenther@suse.de>
* gcc.c-torture/execute/20080408-1.c: New testcase.
......@@ -3,7 +3,11 @@ extern void abort() __attribute__ ((noreturn));
struct s
{
unsigned long long f1 : 40;
#if(__SIZEOF_INT__ >= 4)
unsigned int f2 : 24;
#else
unsigned long int f2 : 24;
#endif
} sv;
int main()
......
......@@ -4,7 +4,11 @@ int main()
{
signed char a = -30;
signed char b = -31;
#if(__SIZEOF_INT__ >= 4)
if (a > (unsigned short)b)
#else
if ((long) a > (unsigned short)b)
#endif
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