aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/ubsan/pr58443-1.c
blob: 76f1dda07a52e9c7f1df0cac9a3df0dffbe4655f (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR sanitizer/58443 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=shift,unreachable -w" } */

int
foo (int u, int o)
{
  return u / o;
}

/* { dg-final { scan-assembler-not "__ubsan_handle_divrem_overflow" } } */