Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
cxx2a-shift-1.C
blob: 2094cb1b6b4f40c76793f05cce55d807689d157d [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-options "-fsanitize=shift -w -fno-sanitize-recover=shift -std=c++2a" } */
int
main
()
{
int
a
=
1
;
a
<<=
31
;
a
=
16
;
a
<<=
(
__SIZEOF_INT__
*
__CHAR_BIT__
-
5
);
}