Commit 024fefe2 by Rask Ingemann Lambertsen Committed by Rask Ingemann Lambertsen

pr30313.c (struct S): Make sure the bit-field is exactly as wide as an int.

	* gcc.dg/torture/pr30313.c (struct S): Make sure the bit-field is
	  exactly as wide as an int.

From-SVN: r126906
parent 107f82d2
2007-07-25 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.dg/torture/pr30313.c (struct S): Make sure the bit-field is
exactly as wide as an int.
2007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
* gcc.dg/compat/struct-layout-1_generate.c (COMPAT_PRLL):
......@@ -4,7 +4,15 @@ static inline void bar(){}
struct S
{
#if __INT_MAX__ == 32767
signed int i: 16;
#elif __INT_MAX__ == 2147483647
signed int i: 32;
#elif __INT_MAX__ == 9223372036854775807
signed int i: 64;
#else
#error Please add support for your target here
#endif
};
int main()
......
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