diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2022-10-06 22:27:32 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2022-10-25 05:11:28 -0400 |
| commit | 525dcaecba43f9931aff69fd7dd0cd5b443c2859 (patch) | |
| tree | 75990c8d6e4948cb35f1993a156de477357fb54a /test/behavior/math.zig | |
| parent | 45c667eb21b1edde991435871523ece82793b449 (diff) | |
| download | zig-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/math.zig')
| -rw-r--r-- | test/behavior/math.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig index d70b7a8f7e..744f4adb9e 100644 --- a/test/behavior/math.zig +++ b/test/behavior/math.zig @@ -616,8 +616,6 @@ test "128-bit multiplication" { } test "@addWithOverflow" { - if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO - { var result: u8 = undefined; try expect(@addWithOverflow(u8, 250, 100, &result)); @@ -673,8 +671,6 @@ test "small int addition" { } test "basic @mulWithOverflow" { - if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO - var result: u8 = undefined; try expect(@mulWithOverflow(u8, 86, 3, &result)); try expect(result == 2); @@ -897,8 +893,6 @@ test "@mulWithOverflow bitsize > 32" { } test "@subWithOverflow" { - if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO - { var result: u8 = undefined; try expect(@subWithOverflow(u8, 1, 2, &result)); @@ -977,8 +971,6 @@ test "@shlWithOverflow" { } test "overflow arithmetic with u0 values" { - if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO - var result: u0 = undefined; try expect(!@addWithOverflow(u0, 0, 0, &result)); try expect(result == 0); |
