Skip to content

Add behavior test coverage for nested packed struct field access #12632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Add behavior test coverage for nested packed struct field access #12632

wants to merge 1 commit into from

Conversation

davidgmbb
Copy link
Contributor

Closes #3091

@@ -446,3 +446,115 @@ test "optional pointer in packed struct" {
const x = T{ .ptr = &n };
try expect(x.ptr.? == &n);
}

test "nested packed struct field access test" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to skip the test for self-hosted native backends:

Suggested change
test "nested packed struct field access test" {
test "nested packed struct field access test" {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
// and so on for other native backends

@davidgmbb davidgmbb closed this by deleting the head repository Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested property access of packed struct loads wrong value
2 participants