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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
cxx11-shift-2.C
blob
fbc16dfd3d8d1f27c5a128e1c4db6c7fe281d035
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=shift -w -std=c++11" } */
3
4
int
5
main (void)
6
{
7
int a = -42;
8
a <<= 1;
9
}
10
/* { dg-output "left shift of negative value -42" } */