summaryrefslogtreecommitdiffstats
path: root/tests/run-make/coverage-reports/expected_show_coverage.nested_loops.txt
blob: 0dbd6bcf313e02beb681752227460ef51873902c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    1|      1|fn main() {
    2|      1|    let is_true = std::env::args().len() == 1;
    3|      1|    let mut countdown = 10;
    4|       |
    5|      1|    'outer: while countdown > 0 {
    6|      1|        let mut a = 100;
    7|      1|        let mut b = 100;
    8|      3|        for _ in 0..50 {
    9|      3|            if a < 30 {
   10|      0|                break;
   11|      3|            }
   12|      3|            a -= 5;
   13|      3|            b -= 5;
   14|      3|            if b < 90 {
   15|      1|                a -= 10;
   16|      1|                if is_true {
   17|      1|                    break 'outer;
   18|      0|                } else {
   19|      0|                    a -= 2;
   20|      0|                }
   21|      2|            }
   22|       |        }
   23|      0|        countdown -= 1;
   24|       |    }
   25|      1|}