aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/array.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2022-10-06 22:27:32 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2022-10-25 05:11:28 -0400
commit525dcaecba43f9931aff69fd7dd0cd5b443c2859 (patch)
tree75990c8d6e4948cb35f1993a156de477357fb54a /test/behavior/array.zig
parent45c667eb21b1edde991435871523ece82793b449 (diff)
downloadzig-525dcaecba43f9931aff69fd7dd0cd5b443c2859.tar.gz
zig-525dcaecba43f9931aff69fd7dd0cd5b443c2859.zip
behavior: enable stage2_c tests that are currently passing
Also fix C warnings triggered by these tests.
Diffstat (limited to 'test/behavior/array.zig')
-rw-r--r--test/behavior/array.zig5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/behavior/array.zig b/test/behavior/array.zig
index ab084ff30a..911fe28cd8 100644
--- a/test/behavior/array.zig
+++ b/test/behavior/array.zig
@@ -6,8 +6,6 @@ const expect = testing.expect;
const expectEqual = testing.expectEqual;
test "array to slice" {
- if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
-
const a: u32 align(4) = 3;
const b: u32 align(8) = 4;
const a_slice: []align(1) const u32 = @as(*const [1]u32, &a)[0..];
@@ -160,7 +158,6 @@ test "nested arrays of strings" {
test "nested arrays of integers" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
const array_of_numbers = [_][2]u8{
[2]u8{ 1, 2 },
@@ -479,7 +476,6 @@ test "sentinel element count towards the ABI size calculation" {
test "zero-sized array with recursive type definition" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
const U = struct {
fn foo(comptime T: type, comptime n: usize) type {
@@ -501,7 +497,6 @@ test "zero-sized array with recursive type definition" {
test "type coercion of anon struct literal to array" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
const S = struct {