aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ubsan/pr80097.c
blob: 4d48eea69c3bf4c3ccc7092289c7aa570c6e662a (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/80097 */
/* { dg-do compile } */
/* { dg-options "-std=c89 -fsanitize=float-divide-by-zero" } */

int
foo (double a)
{
  int b = (1 / a >= 1);
  return b;
}