blob: 03a72e217a2d9eea0aea42c2ff2b79c93c447915 [file] [log] [blame]
/* PR c++/84590 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=shift" } */
struct S {
int b;
};
void
fn (void)
{
struct S c1 = { 1 << -1 }; /* { dg-warning "left shift" } */
}