tcc-65816/test/tests/vrp-7.c
2017-06-09 13:52:12 +02:00

21 lines
199 B
C

void abort (void);
struct T
{
int b : 1;
} t;
void __attribute__((noinline)) foo (int f)
{
t.b = (f & 0x10) ? 1 : 0;
}
int main (void)
{
foo (0x10);
if (!t.b)
abort ();
return 0;
}