aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-08 23:02:13 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-08 23:02:13 -0700
commitf4fa32a63219917e8fb26f43cbd2d97b17e0aeee (patch)
tree6d5e038f63591104b437c663e86c6ef3a7d6c6a6 /test/behavior
parent1678825c1450b29a1016bba62511388b3e539cd8 (diff)
downloadzig-f4fa32a63219917e8fb26f43cbd2d97b17e0aeee.tar.gz
zig-f4fa32a63219917e8fb26f43cbd2d97b17e0aeee.zip
Sema: fix `@typeInfo` for pointers returning 0 alignment
Diffstat (limited to 'test/behavior')
-rw-r--r--test/behavior/type_info.zig10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/behavior/type_info.zig b/test/behavior/type_info.zig
index 14adc4dad5..9f90088ed9 100644
--- a/test/behavior/type_info.zig
+++ b/test/behavior/type_info.zig
@@ -71,8 +71,6 @@ fn testBasic() !void {
}
test "type info: pointer type info" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
try testPointer();
comptime try testPointer();
}
@@ -89,8 +87,6 @@ fn testPointer() !void {
}
test "type info: unknown length pointer type info" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
try testUnknownLenPtr();
comptime try testUnknownLenPtr();
}
@@ -125,8 +121,6 @@ fn testNullTerminatedPtr() !void {
}
test "type info: slice type info" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
try testSlice();
comptime try testSlice();
}
@@ -306,8 +300,6 @@ const TestStruct = packed struct {
};
test "type info: opaque info" {
- if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
-
try testOpaque();
comptime try testOpaque();
}
@@ -417,8 +409,6 @@ test "type info: TypeId -> TypeInfo impl cast" {
}
test "sentinel of opaque pointer type" {
- if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
-
const c_void_info = @typeInfo(*anyopaque);
try expect(c_void_info.Pointer.sentinel == null);
}