PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / volatile-bitfields-2.c
bloba57cd74753cbcc5e0c463a8329a38d371d818d7c
1 /* { dg-do run } */
2 /* { dg-options "-fstrict-volatile-bitfields" } */
4 extern void abort(void);
5 struct thing {
6 volatile unsigned short a: 8;
7 volatile unsigned short b: 8;
8 } t = {1,2};
10 int main()
12 t.a = 3;
13 if (t.a !=3 || t.b !=2) abort();
14 return 0;