repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr64344-2.c
blob
9d1eafd7abeac5032ba6778da547a477e573ce22
1
/* PR sanitizer/64344 */
2
/* { dg-do compile } */
3
/* { dg-options "-fsanitize=float-cast-overflow" } */
4
5
int
6
foo
(
void
)
7
{
8
static const int
a
=
0.5
;
9
static const int
b
= (
int
)
13.5
+
1
;
10
return
a
+
b
;
11
}