float literals now parse using musl's 128 bit float code
fixes float literals not having 128 bit precision
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user