repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wshift-count-overflow-2.c
blob
92032c024a29967f50fe3dd548b62129fc0c4346
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
}