Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
c-c++-common
/
Wshift-count-overflow-2.c
blob: 92032c024a29967f50fe3dd548b62129fc0c4346 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wno-shift-count-overflow" } */
void
foo
()
{
unsigned
i1
=
1U
<<
(
sizeof
(
unsigned
)
*
__CHAR_BIT__
);
unsigned
i2
=
1U
>>
(
sizeof
(
unsigned
)
*
__CHAR_BIT__
);
}