| author | |
| committer | |
| log | 30ed91b7b9f70d3f64e0c3a1a8d0eb0f3b499d50 |
| tree | a0c742df6961a67f5553821bd185b497cce07ebf |
| parent | a1d760416293b20b6a6a72f39a5957fbf22187cc |
2 files changed, 6 insertions(+), 0 deletions(-)
test/behavior/cast.zig+3| ... | ... | @@ -251,6 +251,9 @@ test "*const ?[*]const T to [*c]const [*c]const T" { |
| 251 | 251 | test "array coersion to undefined at runtime" { |
| 252 | 252 | @setRuntimeSafety(true); |
| 253 | 253 | |
| 254 | // setRuntimeSafety isn't recognized on stage2 | |
| 255 | if (@import("builtin").zig_is_stage2 and (@import("builtin").mode != .Debug or @import("builtin").mode != .ReleaseSafe)) return error.SkipZigTest; | |
| 256 | ||
| 254 | 257 | var array = [4]u8{ 3, 4, 5, 6 }; |
| 255 | 258 | var undefined_val = [4]u8{ 0xAA, 0xAA, 0xAA, 0xAA }; |
| 256 | 259 |
test/behavior/int128.zig+3| ... | ... | @@ -20,6 +20,9 @@ test "uint128" { |
| 20 | 20 | test "undefined 128 bit int" { |
| 21 | 21 | @setRuntimeSafety(true); |
| 22 | 22 | |
| 23 | // setRuntimeSafety isn't recognized on stage2 | |
| 24 | if (@import("builtin").zig_is_stage2 and (@import("builtin").mode != .Debug or @import("builtin").mode != .ReleaseSafe)) return error.SkipZigTest; | |
| 25 | ||
| 23 | 26 | var undef: u128 = undefined; |
| 24 | 27 | var undef_signed: i128 = undefined; |
| 25 | 28 | try expect(undef == 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa and @bitCast(u128, undef_signed) == undef); |