☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
float-cast-overflow-11.c
☽
☼
gcc/testsuite/c-c++-common/ubsan/float-cast-overflow-11.c
code
plain
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
}