blob: 88acfa1517eb045a81bf472ccfd93ddbc176fffc [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fsanitize=integer-divide-by-zero -w" } */
void
foo (int i)
{
switch (i)
case 0 * (1 / 0): /* { dg-error "is not a constant expression" } */
;
}