☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr64289.c
☽
☼
gcc/testsuite/c-c++-common/ubsan/pr64289.c
code
plain
raw
1
/* PR sanitizer/64289 */
2
/* { dg-do compile } */
3
/* { dg-options "-fsanitize=float-cast-overflow" } */
4
5
int
6
foo (int a)
7
{
8
return (int) (0 ? 0 : a ? a : 0.5);
9
}