repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
cxx11-shift-1.C
blob
7e998885c9f63daea665ae8705ae4b710fa79b23
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=shift -w -fno-sanitize-recover=shift -std=c++11" } */
3
4
int
5
main ()
6
{
7
int a = 1;
8
a <<= (__SIZEOF_INT__ * __CHAR_BIT__ - 1);
9
a = 16;
10
a <<= (__SIZEOF_INT__ * __CHAR_BIT__ - 5);
11
}