| ... | @@ -741,22 +741,26 @@ pub fn addCases(cases: *tests.TranslateCContext) void { | ... | @@ -741,22 +741,26 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 741 | \\}; | 741 | \\}; |
| 742 | }); | 742 | }); |
| 743 | | 743 | |
| 744 | cases.add("align() attribute", | 744 | // Test case temporarily disabled: |
| 745 | \\__attribute__ ((aligned(128))) | 745 | // https://github.com/ziglang/zig/issues/12055 |
| 746 | \\extern char my_array[16]; | 746 | if (false) { |
| 747 | \\__attribute__ ((aligned(128))) | 747 | cases.add("align() attribute", |
| 748 | \\void my_fn(void) { } | 748 | \\__attribute__ ((aligned(128))) |
| 749 | \\void other_fn(void) { | 749 | \\extern char my_array[16]; |
| 750 | \\ char ARR[16] __attribute__ ((aligned (16))); | 750 | \\__attribute__ ((aligned(128))) |
| 751 | \\} | 751 | \\void my_fn(void) { } |
| 752 | , &[_][]const u8{ | 752 | \\void other_fn(void) { |
| 753 | \\pub extern var my_array: [16]u8 align(128); | 753 | \\ char ARR[16] __attribute__ ((aligned (16))); |
| 754 | \\pub export fn my_fn() align(128) void {} | 754 | \\} |
| 755 | \\pub export fn other_fn() void { | 755 | , &[_][]const u8{ |
| 756 | \\ var ARR: [16]u8 align(16) = undefined; | 756 | \\pub extern var my_array: [16]u8 align(128); |
| 757 | \\ _ = ARR; | 757 | \\pub export fn my_fn() align(128) void {} |
| 758 | \\} | 758 | \\pub export fn other_fn() void { |
| 759 | }); | 759 | \\ var ARR: [16]u8 align(16) = undefined; |
| | 760 | \\ _ = ARR; |
| | 761 | \\} |
| | 762 | }); |
| | 763 | } |
| 760 | | 764 | |
| 761 | cases.add("linksection() attribute", | 765 | cases.add("linksection() attribute", |
| 762 | \\// Use the "segment,section" format to make this test pass when | 766 | \\// Use the "segment,section" format to make this test pass when |