mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 08:55:36 +00:00
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
13 lines
234 B
Zig
13 lines
234 B
Zig
const std = @import("std");
|
|
const expect = std.testing.expect;
|
|
|
|
const S = struct {
|
|
p: *S,
|
|
};
|
|
test "bug 2006" {
|
|
var a: S = undefined;
|
|
a = S{ .p = undefined };
|
|
expect(@sizeOf(S) != 0);
|
|
expect(@sizeOf(*void) == 0);
|
|
}
|