| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 |
|
| 13 | . "$(dirname "$0")/../lib.sh"
|
| 14 |
|
| 15 | setup
|
| 16 | build_pair function_removal.c
|
| 17 |
|
| 18 | |
| 19 | has_input_symbol orig.o going_away ||
|
| 20 | fail "fixture has no going_away in the original"
|
| 21 | has_input_symbol patched.o going_away &&
|
| 22 | fail "fixture still has going_away in the patched object"
|
| 23 |
|
| 24 | run_diff
|
| 25 |
|
| 26 | assert_diff_log 'no correlation: going_away'
|
| 27 |
|
| 28 | |
| 29 | assert_patched caller
|
| 30 | |
| 31 | assert_not_patched going_away
|
| 32 | assert_no_symbol going_away
|
| 33 |
|
| 34 | pass "deleted function reported as uncorrelated and left out of the patch"
|