2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / h8300 / pr17306-2.c
bloba407c74b4cdbb3a068b04c1253fcc8006665448a
1 /* { dg-do compile } */
2 /* { dg-options "-mh -O2 -w" } */
3 /* { dg-final { scan-assembler-times ":8" 2 } } */
6 struct x {
7 char x;
8 char y;
9 };
11 struct x __attribute__ ((eightbit_data)) foo;
13 int bar ()
15 if ((foo.y & 0x80) != 0)
16 oof ();
19 int com ()
21 if ((foo.x & 0x80) != 0)
22 oof ();