Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr26729-1.c
blob: 2f55ef7f4f09d38605a2a1dd1a524a6076330850 [
file
] [
log
] [
blame
]
/* { 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
;
}