Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr97979.c
blob: 44aaff2ab5aa2cb6cf8b188ae8c50cc061f874fe [
file
] [
log
] [
blame
]
/* PR tree-optimization/97979 */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-ccp" } */
short
a
=
0
;
int
b
=
0
;
void
foo
(
void
)
{
unsigned
short
d
=
b
;
a
=
d
>>
-
2U
;
/* { dg-warning "right shift count >= width of type" } */
}