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
/
cxx2a-shift-1.C
blob
2094cb1b6b4f40c76793f05cce55d807689d157d
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=shift -w -fno-sanitize-recover=shift -std=c++2a" } */
3
4
int
5
main ()
6
{
7
int a = 1;
8
a <<= 31;
9
a = 16;
10
a <<= (__SIZEOF_INT__ * __CHAR_BIT__ - 5);
11
}