Debian Codegraph @

gcc/testsuite/c-c++-common/ubsan/pr64289.c

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 }