bit-field on 16-bit targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81343
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
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);
}