mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 05:10:33 +08:00
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
This commit is contained in:
parent
02765a37a1
commit
a5e34caf3c
@ -1,3 +1,9 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user