blob: e249f9ba43d89b038b4214cf9dddee07bf7f74cb [file] [log] [blame]
// PR sanitizer/80403
// { dg-do compile }
// { dg-options "-fsanitize=undefined" }
unsigned
foo ()
{
unsigned a = (unsigned) (!(6044238 >> 0) >= (0 < 0)) % 0; // { dg-warning "division by zero" }
unsigned b = (unsigned) (!(6044238 >> 0) >= (0 < 0)) / 0; // { dg-warning "division by zero" }
return a + b;
}