From 8159ff8b811a1621674b0f00a01b5a92698af8f9 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Thu, 13 Feb 2025 17:09:21 -0500 Subject: x86_64: implement error set and enum safety This is all of the expected 0.14.0 progress on #21530, which can now be postponed once this commit is merged. This required rewriting the (un)wrap operations since the original implementations were extremely buggy. Also adds an easy way to retrigger Sema OPV bugs so that I don't have to keep updating #22419 all the time. --- test/cases/compile_errors/packed_struct_backing_int_wrong.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cases/compile_errors/packed_struct_backing_int_wrong.zig') diff --git a/test/cases/compile_errors/packed_struct_backing_int_wrong.zig b/test/cases/compile_errors/packed_struct_backing_int_wrong.zig index cd1b4ec11c..71f77209ad 100644 --- a/test/cases/compile_errors/packed_struct_backing_int_wrong.zig +++ b/test/cases/compile_errors/packed_struct_backing_int_wrong.zig @@ -43,7 +43,7 @@ export fn entry7() void { } // error -// backend=llvm +// backend=stage2 // target=native // // :2:31: error: backing integer type 'u32' has bit size 32 but the struct fields have a total bit size of 29 -- cgit v1.2.3