| author | |
| committer | |
| log | 4468abfc424ba645413ee076e5e2e370aa807bcc |
| tree | df7952a442256784ac158d38a91f1b0e020d109b |
| parent | 6f87f49f3ddf4fb56f8b4e2ff86d1020ab2dd690 |
7 files changed, 0 insertions(+), 28 deletions(-)
test/behavior/align.zig-16| ... | @@ -22,14 +22,10 @@ test "global variable alignment" { | ... | @@ -22,14 +22,10 @@ test "global variable alignment" { |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | test "default alignment allows unspecified in type syntax" { | 24 | test "default alignment allows unspecified in type syntax" { |
| 25 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 26 | |||
| 27 | try expect(*u32 == *align(@alignOf(u32)) u32); | 25 | try expect(*u32 == *align(@alignOf(u32)) u32); |
| 28 | } | 26 | } |
| 29 | 27 | ||
| 30 | test "implicitly decreasing pointer alignment" { | 28 | test "implicitly decreasing pointer alignment" { |
| 31 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 32 | |||
| 33 | const a: u32 align(4) = 3; | 29 | const a: u32 align(4) = 3; |
| 34 | const b: u32 align(8) = 4; | 30 | const b: u32 align(8) = 4; |
| 35 | try expect(addUnaligned(&a, &b) == 7); | 31 | try expect(addUnaligned(&a, &b) == 7); |
| ... | @@ -40,8 +36,6 @@ fn addUnaligned(a: *align(1) const u32, b: *align(1) const u32) u32 { | ... | @@ -40,8 +36,6 @@ fn addUnaligned(a: *align(1) const u32, b: *align(1) const u32) u32 { |
| 40 | } | 36 | } |
| 41 | 37 | ||
| 42 | test "@alignCast pointers" { | 38 | test "@alignCast pointers" { |
| 43 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 44 | |||
| 45 | var x: u32 align(4) = 1; | 39 | var x: u32 align(4) = 1; |
| 46 | expectsOnly1(&x); | 40 | expectsOnly1(&x); |
| 47 | try expect(x == 2); | 41 | try expect(x == 2); |
| ... | @@ -54,8 +48,6 @@ fn expects4(x: *align(4) u32) void { | ... | @@ -54,8 +48,6 @@ fn expects4(x: *align(4) u32) void { |
| 54 | } | 48 | } |
| 55 | 49 | ||
| 56 | test "alignment of structs" { | 50 | test "alignment of structs" { |
| 57 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 58 | |||
| 59 | try expect(@alignOf(struct { | 51 | try expect(@alignOf(struct { |
| 60 | a: i32, | 52 | a: i32, |
| 61 | b: *i32, | 53 | b: *i32, |
| ... | @@ -63,15 +55,11 @@ test "alignment of structs" { | ... | @@ -63,15 +55,11 @@ test "alignment of structs" { |
| 63 | } | 55 | } |
| 64 | 56 | ||
| 65 | test "alignment of >= 128-bit integer type" { | 57 | test "alignment of >= 128-bit integer type" { |
| 66 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 67 | |||
| 68 | try expect(@alignOf(u128) == 16); | 58 | try expect(@alignOf(u128) == 16); |
| 69 | try expect(@alignOf(u129) == 16); | 59 | try expect(@alignOf(u129) == 16); |
| 70 | } | 60 | } |
| 71 | 61 | ||
| 72 | test "alignment of struct with 128-bit field" { | 62 | test "alignment of struct with 128-bit field" { |
| 73 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 74 | |||
| 75 | try expect(@alignOf(struct { | 63 | try expect(@alignOf(struct { |
| 76 | x: u128, | 64 | x: u128, |
| 77 | }) == 16); | 65 | }) == 16); |
| ... | @@ -84,8 +72,6 @@ test "alignment of struct with 128-bit field" { | ... | @@ -84,8 +72,6 @@ test "alignment of struct with 128-bit field" { |
| 84 | } | 72 | } |
| 85 | 73 | ||
| 86 | test "size of extern struct with 128-bit field" { | 74 | test "size of extern struct with 128-bit field" { |
| 87 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 88 | |||
| 89 | try expect(@sizeOf(extern struct { | 75 | try expect(@sizeOf(extern struct { |
| 90 | x: u128, | 76 | x: u128, |
| 91 | y: u8, | 77 | y: u8, |
| ... | @@ -100,8 +86,6 @@ test "size of extern struct with 128-bit field" { | ... | @@ -100,8 +86,6 @@ test "size of extern struct with 128-bit field" { |
| 100 | } | 86 | } |
| 101 | 87 | ||
| 102 | test "@ptrCast preserves alignment of bigger source" { | 88 | test "@ptrCast preserves alignment of bigger source" { |
| 103 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 104 | |||
| 105 | var x: u32 align(16) = 1234; | 89 | var x: u32 align(16) = 1234; |
| 106 | const ptr = @ptrCast(*u8, &x); | 90 | const ptr = @ptrCast(*u8, &x); |
| 107 | try expect(@TypeOf(ptr) == *align(16) u8); | 91 | try expect(@TypeOf(ptr) == *align(16) u8); |
test/behavior/alignof.zig-1| ... | @@ -22,7 +22,6 @@ test "@alignOf(T) before referencing T" { | ... | @@ -22,7 +22,6 @@ test "@alignOf(T) before referencing T" { |
| 22 | 22 | ||
| 23 | test "comparison of @alignOf(T) against zero" { | 23 | test "comparison of @alignOf(T) against zero" { |
| 24 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 24 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 25 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 26 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 25 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 27 | { | 26 | { |
| 28 | const T = struct { x: u32 }; | 27 | const T = struct { x: u32 }; |
test/behavior/bitcast.zig-6| ... | @@ -76,7 +76,6 @@ test "@bitCast packed structs at runtime and comptime" { | ... | @@ -76,7 +76,6 @@ test "@bitCast packed structs at runtime and comptime" { |
| 76 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 76 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 77 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 77 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 78 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 78 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 79 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 80 | 79 | ||
| 81 | const Full = packed struct { | 80 | const Full = packed struct { |
| 82 | number: u16, | 81 | number: u16, |
| ... | @@ -113,7 +112,6 @@ test "@bitCast extern structs at runtime and comptime" { | ... | @@ -113,7 +112,6 @@ test "@bitCast extern structs at runtime and comptime" { |
| 113 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 112 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 114 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 113 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 115 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 114 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 116 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 117 | 115 | ||
| 118 | const Full = extern struct { | 116 | const Full = extern struct { |
| 119 | number: u16, | 117 | number: u16, |
| ... | @@ -147,7 +145,6 @@ test "bitcast packed struct to integer and back" { | ... | @@ -147,7 +145,6 @@ test "bitcast packed struct to integer and back" { |
| 147 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 145 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 148 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 146 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 149 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 147 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 150 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 151 | 148 | ||
| 152 | const LevelUpMove = packed struct { | 149 | const LevelUpMove = packed struct { |
| 153 | move_id: u9, | 150 | move_id: u9, |
| ... | @@ -184,7 +181,6 @@ test "bitcast packed struct literal to byte" { | ... | @@ -184,7 +181,6 @@ test "bitcast packed struct literal to byte" { |
| 184 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 181 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 185 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 182 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 186 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 183 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 187 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 188 | 184 | ||
| 189 | const Foo = packed struct { | 185 | const Foo = packed struct { |
| 190 | value: u8, | 186 | value: u8, |
| ... | @@ -198,7 +194,6 @@ test "comptime bitcast used in expression has the correct type" { | ... | @@ -198,7 +194,6 @@ test "comptime bitcast used in expression has the correct type" { |
| 198 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 194 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 199 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 195 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 200 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 196 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 201 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 202 | 197 | ||
| 203 | const Foo = packed struct { | 198 | const Foo = packed struct { |
| 204 | value: u8, | 199 | value: u8, |
| ... | @@ -211,7 +206,6 @@ test "bitcast passed as tuple element" { | ... | @@ -211,7 +206,6 @@ test "bitcast passed as tuple element" { |
| 211 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; | 206 | if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; |
| 212 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 207 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 213 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 208 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 214 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 215 | 209 | ||
| 216 | const S = struct { | 210 | const S = struct { |
| 217 | fn foo(args: anytype) !void { | 211 | fn foo(args: anytype) !void { |
test/behavior/bugs/1025.zig-1| ... | @@ -10,7 +10,6 @@ fn getA() A { | ... | @@ -10,7 +10,6 @@ fn getA() A { |
| 10 | 10 | ||
| 11 | test "bug 1025" { | 11 | test "bug 1025" { |
| 12 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 12 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 13 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 14 | const a = getA(); | 13 | const a = getA(); |
| 15 | try @import("std").testing.expect(a.B == u8); | 14 | try @import("std").testing.expect(a.B == u8); |
| 16 | } | 15 | } |
test/behavior/bugs/1500.zig-1| ... | @@ -7,7 +7,6 @@ const B = *const fn (A) void; | ... | @@ -7,7 +7,6 @@ const B = *const fn (A) void; |
| 7 | 7 | ||
| 8 | test "allow these dependencies" { | 8 | test "allow these dependencies" { |
| 9 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 9 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 10 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 11 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 10 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 12 | var a: A = undefined; | 11 | var a: A = undefined; |
| 13 | var b: B = undefined; | 12 | var b: B = undefined; |
test/behavior/generics.zig-2| ... | @@ -166,7 +166,6 @@ test "generic fn keeps non-generic parameter types" { | ... | @@ -166,7 +166,6 @@ test "generic fn keeps non-generic parameter types" { |
| 166 | 166 | ||
| 167 | test "array of generic fns" { | 167 | test "array of generic fns" { |
| 168 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 168 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 169 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 170 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 169 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 171 | try expect(foos[0](true)); | 170 | try expect(foos[0](true)); |
| 172 | try expect(!foos[1](true)); | 171 | try expect(!foos[1](true)); |
| ... | @@ -186,7 +185,6 @@ fn foo2(arg: anytype) bool { | ... | @@ -186,7 +185,6 @@ fn foo2(arg: anytype) bool { |
| 186 | 185 | ||
| 187 | test "generic struct" { | 186 | test "generic struct" { |
| 188 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 187 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 189 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 190 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 188 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 191 | var a1 = GenNode(i32){ | 189 | var a1 = GenNode(i32){ |
| 192 | .value = 13, | 190 | .value = 13, |
test/behavior/namespace_depends_on_compile_var.zig-1| ... | @@ -4,7 +4,6 @@ const expect = std.testing.expect; | ... | @@ -4,7 +4,6 @@ const expect = std.testing.expect; |
| 4 | 4 | ||
| 5 | test "namespace depends on compile var" { | 5 | test "namespace depends on compile var" { |
| 6 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | 6 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; |
| 7 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 8 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | 7 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; |
| 9 | if (some_namespace.a_bool) { | 8 | if (some_namespace.a_bool) { |
| 10 | try expect(some_namespace.a_bool); | 9 | try expect(some_namespace.a_bool); |