☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
shift-11.c
☽
☼
gcc/testsuite/c-c++-common/ubsan/shift-11.c
code
plain
raw
1
/* PR c++/84590 */
2
/* { dg-do compile } */
3
/* { dg-options "-fsanitize=shift" } */
4
5
struct S {
6
int b;
7
};
8
9
void
10
fn (void)
11
{
12
struct S c1 = { 1 << -1 }; /* { dg-warning "left shift" } */
13
}