diff options
| author | Veikka Tuominen <git@vexu.eu> | 2024-05-22 11:54:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-22 11:54:38 +0300 |
| commit | 5fe9f88b13f37e14fcb91e155e3e686eccb89dfc (patch) | |
| tree | 1f53670faa2339589215047c9ffd6d39449c81e1 /test | |
| parent | 6635360dbdbd6793b741648d51d25f12550e01db (diff) | |
| parent | f776e70c3967da637d5488b6a8efaa8377680208 (diff) | |
| download | zig-5fe9f88b13f37e14fcb91e155e3e686eccb89dfc.tar.gz zig-5fe9f88b13f37e14fcb91e155e3e686eccb89dfc.zip | |
Merge pull request #20023 from Vexu/fixes
Minor LLVM backend fixes
Diffstat (limited to 'test')
| -rw-r--r-- | test/behavior/packed-struct.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/behavior/packed-struct.zig b/test/behavior/packed-struct.zig index 4870cd5984..51a302c945 100644 --- a/test/behavior/packed-struct.zig +++ b/test/behavior/packed-struct.zig @@ -1304,3 +1304,10 @@ test "2-byte packed struct argument in C calling convention" { try S.bar(s); } } + +test "packed struct contains optional pointer" { + const foo: packed struct { + a: ?*@This() = null, + } = .{}; + try expect(foo.a == null); +} |
