aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20200105-2.c
blob: 53294111e1becc0612f80c63c9e72b8524ce8bf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct mouse_button_str {
        signed char left      : 1;
        signed char right     : 1;
        signed char middle    : 1;
};
int g(void)
{
  unsigned char a = 0;
  struct mouse_button_str *newbutton1 = (struct mouse_button_str*)&a;
  newbutton1->left = 1;
  return a;
}