authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-08 23:17:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-08 23:17:41-07:00
loga1c56ffd5a203df0a8feecaa5cebfdb2a0087cae
tree3b54f513c47c60fd26e821e04f851c9e5722a754
parentf976758855ef86806d263a75092708cdd56cb813

disable regressed translate-c test case on freebsd

see #12055

1 files changed, 20 insertions(+), 16 deletions(-)

test/translate_c.zig+20-16
...@@ -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 });
743743
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 }
760764
761 cases.add("linksection() attribute",765 cases.add("linksection() attribute",
762 \\// Use the "segment,section" format to make this test pass when766 \\// Use the "segment,section" format to make this test pass when