re PR middle-end/40404 (Comparison involving unsigned int:17 bitfield seems wrong)

2009-06-17  Richard Guenther  <rguenther@suse.de>

	PR middle-end/40404
	* gcc.c-torture/execute/pr40404.c: New testcase.

From-SVN: r148606
This commit is contained in:
Richard Guenther 2009-06-17 12:30:54 +00:00 committed by Richard Biener
parent 4d61856d0a
commit 4bc3052992
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-06-17 Richard Guenther <rguenther@suse.de>
PR middle-end/40404
* gcc.c-torture/execute/pr40404.c: New testcase.
2009-06-17 Richard Guenther <rguenther@suse.de>
PR middle-end/40460

View File

@ -0,0 +1,12 @@
extern void abort (void);
struct S {
unsigned int ui17 : 17;
} s;
int main()
{
s.ui17 = 0x1ffff;
if (s.ui17 >= 0xfffffffeu)
abort ();
return 0;
}