1 /* PR c++/84590 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-fsanitize=shift" } */ 4 5 struct S { 6 int b; 7 }; 8 9 void fn(void)10 fn (void) 11 { 12 struct S c1 = { 1 << -1 }; /* { dg-warning "left shift" } */ 13 } 14