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:
parent
4d61856d0a
commit
4bc3052992
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue