Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr64344-2.c
blob: 9d1eafd7abeac5032ba6778da547a477e573ce22 [
file
] [
log
] [
blame
]
/* PR sanitizer/64344 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=float-cast-overflow" } */
int
foo
(
void
)
{
static
const
int
a
=
0.5
;
static
const
int
b
=
(
int
)
13.5
+
1
;
return
a
+
b
;
}