float literals now parse using musl's 128 bit float code

fixes float literals not having 128 bit precision
This commit is contained in:
Andrew Kelley
2019-03-22 14:56:03 -04:00
parent 127bb124a0
commit 4615ed5ea0
9 changed files with 1090 additions and 25 deletions

View File

@@ -4774,7 +4774,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
cases.add(
"float literal too large error",
\\comptime {
\\ const a = 0x1.0p16384;
\\ const a = 0x1.0p18495;
\\}
,
"tmp.zig:2:15: error: float literal out of range of any type",
@@ -4783,7 +4783,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
cases.add(
"float literal too small error (denormal)",
\\comptime {
\\ const a = 0x1.0p-16384;
\\ const a = 0x1.0p-19000;
\\}
,
"tmp.zig:2:15: error: float literal out of range of any type",