Skip to content

Commit

Permalink
Fix out-by-one errors in cargo-rmc-tests and run-make tests (rust-lan…
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws authored and tedinski committed Apr 8, 2021
1 parent aa53e41 commit 216e3e9
Show file tree
Hide file tree
Showing 33 changed files with 194 additions and 194 deletions.
2 changes: 1 addition & 1 deletion cargo-rmc-tests/simple-lib/expected.test_one_plus_two
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[test_one_plus_two.assertion.1] line 30 assertion failed: p.sum() == 3: SUCCESS
[test_one_plus_two.assertion.1] line 31 assertion failed: p.sum() == 3: SUCCESS
2 changes: 1 addition & 1 deletion cargo-rmc-tests/simple-lib/expected.test_sum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[test_sum.assertion.1] line 26 assertion failed: p.sum() == a.wrapping_add(b): SUCCESS
[test_sum.assertion.1] line 27 assertion failed: p.sum() == a.wrapping_add(b): SUCCESS
4 changes: 2 additions & 2 deletions src/test/run-make/gotoc-allocation/expected
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
line 7 assertion failed: foo() == None: SUCCESS
line 10 assertion failed: foo() == y: SUCCESS
line 8 assertion failed: foo() == None: SUCCESS
line 11 assertion failed: foo() == y: SUCCESS
8 changes: 4 additions & 4 deletions src/test/run-make/gotoc-array/expected
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ array 'y'.0 upper bound in y.0[var_12]: SUCCESS
array 'y'.0 upper bound in y.0[var_16]: FAILURE
array 'x'.0 upper bound in x.0[var_3]: SUCCESS
array 'x'.0 upper bound in x.0[var_5]: SUCCESS
line 10 assertion failed: y[0] == 1: SUCCESS
line 11 assertion failed: y[1] == 2: SUCCESS
line 12 index out of bounds: the length is move _17 but the index is _16: FAILURE
line 12 assertion failed: y[z] == 3: FAILURE
line 11 assertion failed: y[0] == 1: SUCCESS
line 12 assertion failed: y[1] == 2: SUCCESS
line 13 index out of bounds: the length is move _17 but the index is _16: FAILURE
line 13 assertion failed: y[z] == 3: FAILURE
84 changes: 42 additions & 42 deletions src/test/run-make/gotoc-binop/expected
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
line 3 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
line 3 assertion failed: a + b == correct: SUCCESS
line 4 attempt to compute `move _15 + move _16`, which would overflow: SUCCESS
line 4 assertion failed: a + b == wrong: FAILURE
line 8 attempt to compute `move _8 - move _9`, which would overflow: SUCCESS
line 8 assertion failed: a - b == correct: SUCCESS
line 9 attempt to compute `move _15 - move _16`, which would overflow: SUCCESS
line 9 assertion failed: a - b == wrong: FAILURE
line 13 attempt to compute `move _8 * move _9`, which would overflow: SUCCESS
line 13 assertion failed: a * b == correct: SUCCESS
line 14 attempt to compute `move _15 * move _16`, which would overflow: SUCCESS
line 14 assertion failed: a * b == wrong: FAILURE
line 18 attempt to divide `_8` by zero: SUCCESS
line 18 attempt to compute `_8 / _9`, which would overflow: SUCCESS
line 18 assertion failed: a / b == correct: SUCCESS
line 19 attempt to divide `_18` by zero: SUCCESS
line 19 attempt to compute `_18 / _19`, which would overflow: SUCCESS
line 19 assertion failed: a / b == wrong: FAILURE
line 23 attempt to calculate the remainder of `_8` with a divisor of zero: SUCCESS
line 23 attempt to compute the remainder of `_8 % _9`, which would overflow: SUCCESS
line 23 assertion failed: a % b == correct: SUCCESS
line 24 attempt to calculate the remainder of `_18` with a divisor of zero: SUCCESS
line 24 attempt to compute the remainder of `_18 % _19`, which would overflow: SUCCESS
line 24 assertion failed: a % b == wrong: FAILURE
line 28 attempt to shift left by `move _9`, which would overflow: SUCCESS
line 28 assertion failed: a << b == correct: SUCCESS
line 29 attempt to shift left by `move _16`, which would overflow: SUCCESS
line 29 assertion failed: a << b == wrong: FAILURE
line 33 attempt to shift right by `move _9`, which would overflow: SUCCESS
line 33 assertion failed: a >> b == correct: SUCCESS
line 34 attempt to shift right by `move _16`, which would overflow: SUCCESS
line 34 assertion failed: a >> b == wrong: FAILURE
line 38 attempt to shift right by `move _9`, which would overflow: SUCCESS
line 38 assertion failed: a >> b == correct: SUCCESS
line 39 attempt to shift right by `move _16`, which would overflow: SUCCESS
line 39 assertion failed: a >> b == wrong: FAILURE
line 43 assertion failed: a & b == correct: SUCCESS
line 44 assertion failed: a & b == wrong: FAILURE
line 48 assertion failed: a | b == correct: SUCCESS
line 49 assertion failed: a | b == wrong: FAILURE
line 53 assertion failed: a ^ b == correct: SUCCESS
line 54 assertion failed: a ^ b == wrong: FAILURE
line 4 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
line 4 assertion failed: a + b == correct: SUCCESS
line 5 attempt to compute `move _15 + move _16`, which would overflow: SUCCESS
line 5 assertion failed: a + b == wrong: FAILURE
line 9 attempt to compute `move _8 - move _9`, which would overflow: SUCCESS
line 9 assertion failed: a - b == correct: SUCCESS
line 10 attempt to compute `move _15 - move _16`, which would overflow: SUCCESS
line 10 assertion failed: a - b == wrong: FAILURE
line 14 attempt to compute `move _8 * move _9`, which would overflow: SUCCESS
line 14 assertion failed: a * b == correct: SUCCESS
line 15 attempt to compute `move _15 * move _16`, which would overflow: SUCCESS
line 15 assertion failed: a * b == wrong: FAILURE
line 19 attempt to divide `_8` by zero: SUCCESS
line 19 attempt to compute `_8 / _9`, which would overflow: SUCCESS
line 19 assertion failed: a / b == correct: SUCCESS
line 20 attempt to divide `_18` by zero: SUCCESS
line 20 attempt to compute `_18 / _19`, which would overflow: SUCCESS
line 20 assertion failed: a / b == wrong: FAILURE
line 24 attempt to calculate the remainder of `_8` with a divisor of zero: SUCCESS
line 24 attempt to compute the remainder of `_8 % _9`, which would overflow: SUCCESS
line 24 assertion failed: a % b == correct: SUCCESS
line 25 attempt to calculate the remainder of `_18` with a divisor of zero: SUCCESS
line 25 attempt to compute the remainder of `_18 % _19`, which would overflow: SUCCESS
line 25 assertion failed: a % b == wrong: FAILURE
line 29 attempt to shift left by `move _9`, which would overflow: SUCCESS
line 29 assertion failed: a << b == correct: SUCCESS
line 30 attempt to shift left by `move _16`, which would overflow: SUCCESS
line 30 assertion failed: a << b == wrong: FAILURE
line 34 attempt to shift right by `move _9`, which would overflow: SUCCESS
line 34 assertion failed: a >> b == correct: SUCCESS
line 35 attempt to shift right by `move _16`, which would overflow: SUCCESS
line 35 assertion failed: a >> b == wrong: FAILURE
line 39 attempt to shift right by `move _9`, which would overflow: SUCCESS
line 39 assertion failed: a >> b == correct: SUCCESS
line 40 attempt to shift right by `move _16`, which would overflow: SUCCESS
line 40 assertion failed: a >> b == wrong: FAILURE
line 44 assertion failed: a & b == correct: SUCCESS
line 45 assertion failed: a & b == wrong: FAILURE
line 49 assertion failed: a | b == correct: SUCCESS
line 50 assertion failed: a | b == wrong: FAILURE
line 54 assertion failed: a ^ b == correct: SUCCESS
line 55 assertion failed: a ^ b == wrong: FAILURE
12 changes: 6 additions & 6 deletions src/test/run-make/gotoc-closure/expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resume instruction: SUCCESS
line 20 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
line 20 attempt to compute `move _5 + move _6`, which would overflow: SUCCESS
line 20 attempt to compute `(*((*_1).0: &mut i32)) + move _4`, which would overflow: SUCCESS
line 25 attempt to compute `move _18 + const 12_i32`, which would overflow: SUCCESS
line 25 assertion failed: original_num + 12 == num: SUCCESS
line 25 arithmetic overflow on signed + in var_18 + 12: SUCCESS
line 21 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS
line 21 attempt to compute `move _5 + move _6`, which would overflow: SUCCESS
line 21 attempt to compute `(*((*_1).0: &mut i32)) + move _4`, which would overflow: SUCCESS
line 26 attempt to compute `move _18 + const 12_i32`, which would overflow: SUCCESS
line 26 assertion failed: original_num + 12 == num: SUCCESS
line 26 arithmetic overflow on signed + in var_18 + 12: SUCCESS
8 changes: 4 additions & 4 deletions src/test/run-make/gotoc-closure2/expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
line 4 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
line 6 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
line 7 assertion failed: z == 102: SUCCESS
line 8 assertion failed: g(z) == 206: SUCCESS
line 5 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
line 7 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
line 8 assertion failed: z == 102: SUCCESS
line 9 assertion failed: g(z) == 206: SUCCESS
6 changes: 3 additions & 3 deletions src/test/run-make/gotoc-closure3/expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
line 17 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
line 18 attempt to compute `move _11 + const 10_i64`, which would overflow: SUCCESS
line 18 assertion failed: num + 10 == y: SUCCESS
line 18 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS
line 19 attempt to compute `move _11 + const 10_i64`, which would overflow: SUCCESS
line 19 assertion failed: num + 10 == y: SUCCESS
22 changes: 11 additions & 11 deletions src/test/run-make/gotoc-comp/expected
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
line 4 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
line 4 attempt to compute `move _10 + move _11`, which would overflow: SUCCESS
line 4 assertion failed: a + b == b + a: SUCCESS
line 5 attempt to compute `move _16 + move _17`, which would overflow: SUCCESS
line 5 attempt to compute `move _21 + move _22`, which would overflow: SUCCESS
line 5 attempt to compute `move _20 + const 1_i32`, which would overflow: SUCCESS
line 5 assertion failed: a + b != a + b + 1: SUCCESS
line 10 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
line 10 assertion failed: a + b > a: SUCCESS
line 11 attempt to compute `move _13 - move _14`, which would overflow: SUCCESS
line 11 assertion failed: a - b < a: SUCCESS
line 5 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
line 5 attempt to compute `move _10 + move _11`, which would overflow: SUCCESS
line 5 assertion failed: a + b == b + a: SUCCESS
line 6 attempt to compute `move _16 + move _17`, which would overflow: SUCCESS
line 6 attempt to compute `move _21 + move _22`, which would overflow: SUCCESS
line 6 attempt to compute `move _20 + const 1_i32`, which would overflow: SUCCESS
line 6 assertion failed: a + b != a + b + 1: SUCCESS
line 11 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS
line 11 assertion failed: a + b > a: SUCCESS
line 12 attempt to compute `move _13 - move _14`, which would overflow: SUCCESS
line 12 assertion failed: a - b < a: SUCCESS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
line 24 assertion failed: bar.a() == 3: SUCCESS
line 25 assertion failed: bar.b() == 5: SUCCESS
line 25 assertion failed: bar.a() == 3: SUCCESS
line 26 assertion failed: bar.b() == 5: SUCCESS
32 changes: 16 additions & 16 deletions src/test/run-make/gotoc-dynamic-trait/expected
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
line 22 attempt to compute `move _2 * move _3`, which would overflow: SUCCESS
line 25 attempt to compute `move _4 * move _5`, which would overflow: SUCCESS
line 25 attempt to compute `move _3 * move _7`, which would overflow: SUCCESS
line 31 attempt to compute `move _2 * move _3`, which would overflow: SUCCESS
line 34 attempt to compute `move _4 * move _5`, which would overflow: SUCCESS
line 34 attempt to compute `move _3 * move _7`, which would overflow: SUCCESS
line 51 assertion failed: rec.vol(3) == 150: SUCCESS
line 52 assertion failed: impl_area(rec.clone()) == 50: SUCCESS
line 55 assertion failed: vol == 100: SUCCESS
line 58 assertion failed: square.vol(3) == 27: SUCCESS
line 59 assertion failed: do_vol(&square, 2) == 18: SUCCESS
line 60 assertion failed: impl_area(square.clone()) == 9: SUCCESS
line 62 assertion failed: !square.compare_area(&square): SUCCESS
line 63 assertion failed: !square.compare_area(&rec): SUCCESS
line 64 assertion failed: rec.compare_area(&square): SUCCESS
line 65 assertion failed: !rec.compare_area(&rec): SUCCESS
line 23 attempt to compute `move _2 * move _3`, which would overflow: SUCCESS
line 26 attempt to compute `move _4 * move _5`, which would overflow: SUCCESS
line 26 attempt to compute `move _3 * move _7`, which would overflow: SUCCESS
line 32 attempt to compute `move _2 * move _3`, which would overflow: SUCCESS
line 35 attempt to compute `move _4 * move _5`, which would overflow: SUCCESS
line 35 attempt to compute `move _3 * move _7`, which would overflow: SUCCESS
line 52 assertion failed: rec.vol(3) == 150: SUCCESS
line 53 assertion failed: impl_area(rec.clone()) == 50: SUCCESS
line 56 assertion failed: vol == 100: SUCCESS
line 59 assertion failed: square.vol(3) == 27: SUCCESS
line 60 assertion failed: do_vol(&square, 2) == 18: SUCCESS
line 61 assertion failed: impl_area(square.clone()) == 9: SUCCESS
line 63 assertion failed: !square.compare_area(&square): SUCCESS
line 64 assertion failed: !square.compare_area(&rec): SUCCESS
line 65 assertion failed: rec.compare_area(&square): SUCCESS
line 66 assertion failed: !rec.compare_area(&rec): SUCCESS
14 changes: 7 additions & 7 deletions src/test/run-make/gotoc-enum/expected
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
line 17 unreachable code: SUCCESS
line 18 assertion failed: false: SUCCESS
line 18 assertion failed: x == 10: SUCCESS
line 21 unreachable code: SUCCESS
line 22 assertion failed: false: SUCCESS
line 24 assertion failed: x == 30 && y == 60.0: SUCCESS
line 25 assertion failed: x == 31: FAILURE
line 18 unreachable code: SUCCESS
line 19 assertion failed: false: SUCCESS
line 19 assertion failed: x == 10: SUCCESS
line 22 unreachable code: SUCCESS
line 23 assertion failed: false: SUCCESS
line 25 assertion failed: x == 30 && y == 60.0: SUCCESS
line 26 assertion failed: x == 31: FAILURE
10 changes: 5 additions & 5 deletions src/test/run-make/gotoc-float-nan/expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
line 10 assertion failed: 1.0 / f != 0.0 / f: SUCCESS
line 12 assertion failed: !(1.0 / f == 0.0 / f): SUCCESS
line 14 assertion failed: 1.0 / f == 0.0 / f: FAILURE
line 16 assertion failed: 0.0 / f == 0.0 / f: FAILURE
line 18 assertion failed: 0.0 / f != 0.0 / f: SUCCESS
line 11 assertion failed: 1.0 / f != 0.0 / f: SUCCESS
line 13 assertion failed: !(1.0 / f == 0.0 / f): SUCCESS
line 15 assertion failed: 1.0 / f == 0.0 / f: FAILURE
line 17 assertion failed: 0.0 / f == 0.0 / f: FAILURE
line 19 assertion failed: 0.0 / f != 0.0 / f: SUCCESS
4 changes: 2 additions & 2 deletions src/test/run-make/gotoc-generics/expected
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
line 23 assertion failed: x == y.data: SUCCESS
line 24 assertion failed: z == w.data: SUCCESS
line 24 assertion failed: x == y.data: SUCCESS
line 25 assertion failed: z == w.data: SUCCESS
6 changes: 3 additions & 3 deletions src/test/run-make/gotoc-iterator/expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
line 4 unreachable code: SUCCESS
line 5 attempt to compute `_1 * move _13`, which would overflow: SUCCESS
line 7 assertion failed: z == 6: SUCCESS
line 5 unreachable code: SUCCESS
line 6 attempt to compute `_1 * move _13`, which would overflow: SUCCESS
line 8 assertion failed: z == 6: SUCCESS
10 changes: 5 additions & 5 deletions src/test/run-make/gotoc-niche/expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
line 19 unreachable code: SUCCESS
line 20 assertion failed: false: SUCCESS
line 24 unreachable code: SUCCESS
line 25 assertion failed: false: SUCCESS
line 26 assertion failed: a == *b: SUCCESS
line 20 unreachable code: SUCCESS
line 21 assertion failed: false: SUCCESS
line 25 unreachable code: SUCCESS
line 26 assertion failed: false: SUCCESS
line 27 assertion failed: a == *b: SUCCESS
6 changes: 3 additions & 3 deletions src/test/run-make/gotoc-niche2/expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
assertion failed: false: SUCCESS
assertion failed: false: SUCCESS
line 20 unreachable code: SUCCESS
line 21 assertion failed: false: SUCCESS
line 26 assertion failed: x == 10: SUCCESS
line 21 unreachable code: SUCCESS
line 22 assertion failed: false: SUCCESS
line 27 assertion failed: x == 10: SUCCESS
10 changes: 5 additions & 5 deletions src/test/run-make/gotoc-nondet/expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
line 10 attempt to compute `move _12 * move _13`, which would overflow: SUCCESS
line 10 attempt to compute `const 2_i32 * move _16`, which would overflow: SUCCESS
line 10 attempt to compute `move _11 - move _15`, which would overflow: SUCCESS
line 10 attempt to compute `move _10 + const 1_i32`, which would overflow: SUCCESS
line 10 assertion failed: x * x - 2 * x + 1 != 4 || (x == -1 || x == 3): SUCCESS
line 11 attempt to compute `move _12 * move _13`, which would overflow: SUCCESS
line 11 attempt to compute `const 2_i32 * move _16`, which would overflow: SUCCESS
line 11 attempt to compute `move _11 - move _15`, which would overflow: SUCCESS
line 11 attempt to compute `move _10 + const 1_i32`, which would overflow: SUCCESS
line 11 assertion failed: x * x - 2 * x + 1 != 4 || (x == -1 || x == 3): SUCCESS
2 changes: 1 addition & 1 deletion src/test/run-make/gotoc-references/expected
Original file line number Diff line number Diff line change
@@ -1 +1 @@
line 16 assertion failed: z == 2: SUCCESS
line 17 assertion failed: z == 2: SUCCESS
12 changes: 6 additions & 6 deletions src/test/run-make/gotoc-replace-hashmap/expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
line 26 attempt to compute `((*_1).0: usize) + const 1_usize`, which would overflow: SUCCESS
line 26 arithmetic overflow on unsigned + in self->len + 1: SUCCESS
line 56 assertion failed: a.is_some(): FAILURE
line 57 assertion failed: a.is_none(): FAILURE
line 59 assertion failed: b.is_some(): SUCCESS
line 60 assertion failed: b.is_none(): FAILURE
line 27 attempt to compute `((*_1).0: usize) + const 1_usize`, which would overflow: SUCCESS
line 27 arithmetic overflow on unsigned + in self->len + 1: SUCCESS
line 57 assertion failed: a.is_some(): FAILURE
line 58 assertion failed: a.is_none(): FAILURE
line 60 assertion failed: b.is_some(): SUCCESS
line 61 assertion failed: b.is_none(): FAILURE
16 changes: 8 additions & 8 deletions src/test/run-make/gotoc-replace-vec/expected
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
line 23 attempt to compute `((*_1).0: usize) + const 1_usize`, which would overflow: SUCCESS
line 33 attempt to compute `((*_1).0: usize) - const 1_usize`, which would overflow: SUCCESS
line 52 assertion failed: v.len() == 1: SUCCESS
line 53 assertion failed: v.len() == 11: FAILURE
line 55 assertion failed: p != None: SUCCESS
line 56 assertion failed: p == None: FAILURE
line 57 assertion failed: p == Some(to_push): SUCCESS
line 58 assertion failed: p == Some(not_pushed): FAILURE
line 24 attempt to compute `((*_1).0: usize) + const 1_usize`, which would overflow: SUCCESS
line 34 attempt to compute `((*_1).0: usize) - const 1_usize`, which would overflow: SUCCESS
line 53 assertion failed: v.len() == 1: SUCCESS
line 54 assertion failed: v.len() == 11: FAILURE
line 56 assertion failed: p != None: SUCCESS
line 57 assertion failed: p == None: FAILURE
line 58 assertion failed: p == Some(to_push): SUCCESS
line 59 assertion failed: p == Some(not_pushed): FAILURE
8 changes: 4 additions & 4 deletions src/test/run-make/gotoc-slice/expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
line 14 assertion failed: y.len() == 5: SUCCESS
line 15 index out of bounds: the length is move _16 but the index is _15: SUCCESS
line 15 assertion failed: y[1] == 2: SUCCESS
line 16 assertion failed: z.len() == 3: SUCCESS
line 15 assertion failed: y.len() == 5: SUCCESS
line 16 index out of bounds: the length is move _16 but the index is _15: SUCCESS
line 16 assertion failed: y[1] == 2: SUCCESS
line 17 assertion failed: z.len() == 3: SUCCESS
22 changes: 11 additions & 11 deletions src/test/run-make/gotoc-static-mutable-struct/expected
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
line 24 assertion failed: foo().x == 12: SUCCESS
line 25 assertion failed: foo().y == 12: FAILURE
line 26 assertion failed: foo().x == 14: FAILURE
line 27 assertion failed: foo().y == 14: SUCCESS
line 30 assertion failed: foo().x == 1: SUCCESS
line 31 assertion failed: foo().y == 1: FAILURE
line 32 assertion failed: foo().x == 2: FAILURE
line 33 assertion failed: foo().y == 2: SUCCESS
line 36 assertion failed: foo().x == 1 << 62: SUCCESS
line 37 assertion failed: foo().x == 1 << 31: FAILURE
line 38 assertion failed: foo().y == 1 << 31: SUCCESS
line 25 assertion failed: foo().x == 12: SUCCESS
line 26 assertion failed: foo().y == 12: FAILURE
line 27 assertion failed: foo().x == 14: FAILURE
line 28 assertion failed: foo().y == 14: SUCCESS
line 31 assertion failed: foo().x == 1: SUCCESS
line 32 assertion failed: foo().y == 1: FAILURE
line 33 assertion failed: foo().x == 2: FAILURE
line 34 assertion failed: foo().y == 2: SUCCESS
line 37 assertion failed: foo().x == 1 << 62: SUCCESS
line 38 assertion failed: foo().x == 1 << 31: FAILURE
line 39 assertion failed: foo().y == 1 << 31: SUCCESS

8 changes: 4 additions & 4 deletions src/test/run-make/gotoc-static-mutable/expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
line 17 assertion failed: 10 == foo(): FAILURE
line 18 assertion failed: 12 == foo(): SUCCESS
line 20 assertion failed: 10 == foo(): SUCCESS
line 21 assertion failed: 12 == foo(): FAILURE
line 18 assertion failed: 10 == foo(): FAILURE
line 19 assertion failed: 12 == foo(): SUCCESS
line 21 assertion failed: 10 == foo(): SUCCESS
line 22 assertion failed: 12 == foo(): FAILURE
4 changes: 2 additions & 2 deletions src/test/run-make/gotoc-static/expected
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
line 9 assertion failed: 10 == foo(): FAILURE
line 10 assertion failed: 12 == foo(): SUCCESS
line 10 assertion failed: 10 == foo(): FAILURE
line 11 assertion failed: 12 == foo(): SUCCESS
10 changes: 5 additions & 5 deletions src/test/run-make/gotoc-test1/expected
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
line 6 attempt to compute `_1 + move _4`, which would overflow: SUCCESS
line 7 attempt to compute `_2 - const 1_i32`, which would overflow: SUCCESS
line 11 assertion failed: a == 54: FAILURE
line 13 assertion failed: a == 55: SUCCESS
line 15 assertion failed: a >= 55: SUCCESS
line 7 attempt to compute `_1 + move _4`, which would overflow: SUCCESS
line 8 attempt to compute `_2 - const 1_i32`, which would overflow: SUCCESS
line 12 assertion failed: a == 54: FAILURE
line 14 assertion failed: a == 55: SUCCESS
line 16 assertion failed: a >= 55: SUCCESS
Loading

0 comments on commit 216e3e9

Please sign in to comment.