We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.14.0-dev.3298+6fe1993d8
zig test shortcuts2.zig -fno-llvm fails while zig test shortcuts2.zig passes. See in the code the 2 relevant // TODO.. comments.
zig test shortcuts2.zig -fno-llvm
zig test shortcuts2.zig
// TODO..
Long story short, comparing 2 packed structs with std.meta.eql fails with -fno-llvm, while doing a manual
std.meta.eql
-fno-llvm
const backing = @typeInfo(Self).@"struct".backing_integer.?; return @as(backing, @bitCast(self)) == @as(backing, @bitCast(other));
passes.
Also, in a TODO comments, I noticed that when removing a field from another struct, not of compared one, the -fno-llvm passes !?
TODO
Pardon the long reproduction scenario, but when I tried to do something slimmed down I couldn't reproduce the behacior.
PS: apparently github doesn't allow attaching .zig files..
.zig
shortcuts2.txt
Should have same behavior
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Zig Version
0.14.0-dev.3298+6fe1993d8
Steps to Reproduce and Observed Behavior
zig test shortcuts2.zig -fno-llvm
fails whilezig test shortcuts2.zig
passes. See in the code the 2 relevant// TODO..
comments.Long story short, comparing 2 packed structs with
std.meta.eql
fails with-fno-llvm
, while doing a manualpasses.
Also, in a
TODO
comments, I noticed that when removing a field from another struct, not of compared one, the-fno-llvm
passes !?Pardon the long reproduction scenario, but when I tried to do something slimmed down I couldn't reproduce the behacior.
PS: apparently github doesn't allow attaching
.zig
files..shortcuts2.txt
Expected Behavior
Should have same behavior
The text was updated successfully, but these errors were encountered: