Commit 2fe8b9c8 by Kazu Hirata Committed by Kazu Hirata

20040331-1.c: Don't use too wide a bit-field on 16-bit targets.

	* gcc.c-torture/execute/20040331-1.c: Don't use too wide a
	bit-field on 16-bit targets.

From-SVN: r81343
parent 99c4eea1
2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/20040331-1.c: Don't use too wide a
bit-field on 16-bit targets.
2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/20040409-2.c: Fix constants used on
16-bit targets.
......
......@@ -5,8 +5,16 @@ extern void exit (int);
int
main (void)
{
#if __INT_MAX__ >= 2147483647
struct { int count: 31; } s = { 0 };
while (s.count--)
abort ();
#elif __INT_MAX__ >= 32767
struct { int count: 15; } s = { 0 };
while (s.count--)
abort ();
#else
/* Don't bother because __INT_MAX__ is too small. */
#endif
exit (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