☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
Wshift-count-overflow-2.c
☽
☼
gcc/testsuite/c-c++-common/Wshift-count-overflow-2.c
code
plain
raw
1
/* { dg-do compile } */
2
/* { dg-options "-Wno-shift-count-overflow" } */
3
4
void foo()
5
{
6
unsigned i1 = 1U << (sizeof(unsigned) * __CHAR_BIT__);
7
unsigned i2 = 1U >> (sizeof(unsigned) * __CHAR_BIT__);
8
}