mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-12-28 08:30:35 +00:00
17 lines
264 B
C
17 lines
264 B
C
/* { dg-do run } */
|
|
/* { dg-options "-O2" } */
|
|
|
|
void abort(void);
|
|
|
|
__attribute__((noinline))
|
|
int f (unsigned short word) {
|
|
return (word & 0x1) && (((unsigned short) (word & 0x8000)) == 0x8000);
|
|
}
|
|
|
|
int main(void) {
|
|
if (!f(0x8001))
|
|
abort();
|
|
return 0;
|
|
}
|
|
|