aboutsummaryrefslogtreecommitdiff
path: root/test/compile_errors.zig
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2017-09-28 19:15:06 +1300
committerMarc Tiehuis <marctiehuis@gmail.com>2017-09-28 23:33:36 +1300
commit9dfe217be38289b0c9e662d1a0e7c0231bf42a7d (patch)
tree205d5ac64bf5f7a896fdd576a3e284b06b6cf714 /test/compile_errors.zig
parentfd5a5db400995d80015448d19e92daaca71a7f72 (diff)
downloadzig-9dfe217be38289b0c9e662d1a0e7c0231bf42a7d.tar.gz
zig-9dfe217be38289b0c9e662d1a0e7c0231bf42a7d.zip
Allow 128-bit hex float literals
Closes #499.
Diffstat (limited to 'test/compile_errors.zig')
-rw-r--r--test/compile_errors.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index a8a4a96e8d..fc74cc1bf0 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -1901,14 +1901,14 @@ pub fn addCases(cases: &tests.CompileErrorContext) {
cases.add("float literal too large error",
\\comptime {
- \\ const a = 0x1.0p1024;
+ \\ const a = 0x1.0p16384;
\\}
,
".tmp_source.zig:2:15: error: float literal out of range of any type");
cases.add("float literal too small error (denormal)",
\\comptime {
- \\ const a = 0x1.0p-1023;
+ \\ const a = 0x1.0p-16384;
\\}
,
".tmp_source.zig:2:15: error: float literal out of range of any type");