diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-08 23:17:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-08 23:17:41 -0700 |
| commit | a1c56ffd5a203df0a8feecaa5cebfdb2a0087cae (patch) | |
| tree | 3b54f513c47c60fd26e821e04f851c9e5722a754 /test | |
| parent | f976758855ef86806d263a75092708cdd56cb813 (diff) | |
| download | zig-a1c56ffd5a203df0a8feecaa5cebfdb2a0087cae.tar.gz zig-a1c56ffd5a203df0a8feecaa5cebfdb2a0087cae.zip | |
disable regressed translate-c test case on freebsd
see #12055
Diffstat (limited to 'test')
| -rw-r--r-- | test/translate_c.zig | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/test/translate_c.zig b/test/translate_c.zig index b8d39ff797..ec7c202742 100644 --- a/test/translate_c.zig +++ b/test/translate_c.zig @@ -741,22 +741,26 @@ pub fn addCases(cases: *tests.TranslateCContext) void { \\}; }); - cases.add("align() attribute", - \\__attribute__ ((aligned(128))) - \\extern char my_array[16]; - \\__attribute__ ((aligned(128))) - \\void my_fn(void) { } - \\void other_fn(void) { - \\ char ARR[16] __attribute__ ((aligned (16))); - \\} - , &[_][]const u8{ - \\pub extern var my_array: [16]u8 align(128); - \\pub export fn my_fn() align(128) void {} - \\pub export fn other_fn() void { - \\ var ARR: [16]u8 align(16) = undefined; - \\ _ = ARR; - \\} - }); + // Test case temporarily disabled: + // https://github.com/ziglang/zig/issues/12055 + if (false) { + cases.add("align() attribute", + \\__attribute__ ((aligned(128))) + \\extern char my_array[16]; + \\__attribute__ ((aligned(128))) + \\void my_fn(void) { } + \\void other_fn(void) { + \\ char ARR[16] __attribute__ ((aligned (16))); + \\} + , &[_][]const u8{ + \\pub extern var my_array: [16]u8 align(128); + \\pub export fn my_fn() align(128) void {} + \\pub export fn other_fn() void { + \\ var ARR: [16]u8 align(16) = undefined; + \\ _ = ARR; + \\} + }); + } cases.add("linksection() attribute", \\// Use the "segment,section" format to make this test pass when |
