2020-01-05 Andrew Pinski <apinski@marvell.com>
* gcc.c-torture/compile/
20200105-1.c: New testcase.
* gcc.c-torture/compile/
20200105-2.c: New testcase.
* gcc.c-torture/compile/
20200105-3.c: New testcase.
From-SVN: r279893
+2020-01-05 Andrew Pinski <apinski@marvell.com>
+
+ * gcc.c-torture/compile/20200105-1.c: New testcase.
+ * gcc.c-torture/compile/20200105-2.c: New testcase.
+ * gcc.c-torture/compile/20200105-3.c: New testcase.
+
2020-01-05 Iain Sandoe <iain@sandoe.co.uk>
* gcc.dg/darwin-version-1.c: Adjust test to use different
--- /dev/null
+struct mouse_button_str {
+ unsigned char left : 1;
+ unsigned char right : 1;
+ unsigned char middle : 1;
+ };
+int g(void)
+{
+ signed char a = 0;
+ struct mouse_button_str *newbutton1 = (struct mouse_button_str*)&a;
+ newbutton1->left = 1;
+ return a;
+}
--- /dev/null
+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;
+}
--- /dev/null
+struct mouse_button_str {
+ unsigned char left : 1;
+ unsigned char right : 1;
+ unsigned 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;
+}