rust/tests/coverage/condition
Zalathar 35a8746832 coverage: Instrument the RHS value of lazy logical operators
When a lazy logical operator (`&&` or `||`) occurs outside of an `if`
condition, it normally doesn't have any associated control-flow branch, so we
don't have an existing way to track whether it was true or false.

This patch adds special code to handle this case, by inserting extra MIR blocks
in a diamond shape after evaluating the RHS. This gives us a place to insert
the appropriate marker statements, which can then be given their own counters.
2024-05-30 15:38:46 +10:00
..
conditions.cov-map coverage: Instrument the RHS value of lazy logical operators 2024-05-30 15:38:46 +10:00
conditions.coverage coverage: Instrument the RHS value of lazy logical operators 2024-05-30 15:38:46 +10:00
conditions.rs coverage: Add a test for `-Zcoverage-options=condition` 2024-05-30 15:38:46 +10:00