aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-30 15:23:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-30 15:23:40 -0700
commit0c30799d4039c30f95eee29e2c2f8f604e8b9880 (patch)
treee9d2a2698abd269d1ecb1fa59051e0950f0954c0 /test/behavior/math.zig
parent91ad96b88a88016043cb0d069aa9db47747170b6 (diff)
downloadzig-0c30799d4039c30f95eee29e2c2f8f604e8b9880.tar.gz
zig-0c30799d4039c30f95eee29e2c2f8f604e8b9880.zip
Sema: fix comptime shl for fixed-width integers
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index b75a4e17f7..17b519f0c9 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -632,7 +632,10 @@ test "allow signed integer division/remainder when values are comptime known and
}
test "quad hex float literal parsing accurate" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
+ if (builtin.zig_backend != .stage1) {
+ // TODO https://github.com/ziglang/zig/issues/10737
+ return error.SkipZigTest;
+ }
const a: f128 = 0x1.1111222233334444555566667777p+0;
@@ -724,8 +727,6 @@ test "quad hex float literal parsing accurate" {
}
test "truncating shift left" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
try testShlTrunc(maxInt(u16));
comptime try testShlTrunc(maxInt(u16));
}