Debian Codegraph @

gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-11.c

raw
1 /* PR sanitizer/88426 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsanitize=float-cast-overflow" } */
4
5 int
6 foo (void)
7 {
8 const float v = 0.0f;
9 return (int) (v < 0.0f ? v : 0.0f);
10 }