Debian Codegraph @

gcc/testsuite/gcc.dg/ubsan/pr80097.c

raw
1 /* PR c/80097 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c89 -fsanitize=float-divide-by-zero" } */
4
5 int
6 foo (double a)
7 {
8 int b = (1 / a >= 1);
9 return b;
10 }