Commit f93519ad by Joey Ye Committed by Joey Ye

re PR middle-end/51200 (Wrong code sequence to store restrict volatile bitfield)

2011-12-26  Joey Ye  <joey.ye@arm.com>

	PR middle-end/51200
	* gcc.dg/volatile-bitfields-2.c: New test.

From-SVN: r182685
parent 6a7cc8ea
2011-12-26 Joey Ye <joey.ye@arm.com>
PR middle-end/51200
* gcc.dg/volatile-bitfields-2.c: New test.
2011-12-23 Jason Merrill <jason@redhat.com>
PR c++/51507
......
/* { dg-do run } */
/* { dg-options "-fstrict-volatile-bitfields" } */
extern void abort(void);
struct thing {
volatile unsigned short a: 8;
volatile unsigned short b: 8;
} t = {1,2};
int main()
{
t.a = 3;
if (t.a !=3 || t.b !=2) abort();
return 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