view gcc/testsuite/gcc.c-torture/compile/20200105-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

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;
}