Skip to content

Commit 19385d0

Browse files
authored
Merge pull request #3715 from diffblue/compile-time-rounding
test for compile-time rounding
2 parents f3793bd + cec2638 commit 19385d0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <assert.h>
2+
3+
double THREE = 3;
4+
5+
int main()
6+
{
7+
// the rounding mode of the two '3' literals during
8+
// the conversion to double should match
9+
assert(THREE == 3);
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
KNOWNBUG
2+
compile_time_rounding.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--
10+
the rounding mode of the two '3' literals during
11+
the conversion to double should match

0 commit comments

Comments
 (0)