(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
ubsan/
pr80403.C
// 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;
}