ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/h8300/pr17306-2.c

24 lines
301 B
C

/* { dg-do compile } */
/* { dg-options "-mh -O2 -w" } */
/* { dg-final { scan-assembler-times ":8" 2 } } */
struct x {
char x;
char y;
};
struct x __attribute__ ((eightbit_data)) foo;
int bar ()
{
if ((foo.y & 0x80) != 0)
oof ();
}
int com ()
{
if ((foo.x & 0x80) != 0)
oof ();
}