summaryrefslogtreecommitdiffstats
path: root/tests/run-make/coverage-reports/expected_show_coverage.continue.txt
blob: 1c64ead9f2674e37fb967968434ad7b4a0bcf9d4 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
    1|       |#![allow(unused_assignments, unused_variables)]
    2|       |
    3|      1|fn main() {
    4|      1|    let is_true = std::env::args().len() == 1;
    5|      1|
    6|      1|    let mut x = 0;
    7|     11|    for _ in 0..10 {
    8|     10|        match is_true {
    9|       |            true => {
   10|     10|                continue;
   11|       |            }
   12|      0|            _ => {
   13|      0|                x = 1;
   14|      0|            }
   15|      0|        }
   16|      0|        x = 3;
   17|       |    }
   18|     11|    for _ in 0..10 {
   19|     10|        match is_true {
   20|      0|            false => {
   21|      0|                x = 1;
   22|      0|            }
   23|       |            _ => {
   24|     10|                continue;
   25|       |            }
   26|       |        }
   27|      0|        x = 3;
   28|       |    }
   29|     11|    for _ in 0..10 {
   30|     10|        match is_true {
   31|     10|            true => {
   32|     10|                x = 1;
   33|     10|            }
   34|       |            _ => {
   35|      0|                continue;
   36|       |            }
   37|       |        }
   38|     10|        x = 3;
   39|       |    }
   40|     11|    for _ in 0..10 {
   41|     10|        if is_true {
   42|     10|            continue;
   43|      0|        }
   44|      0|        x = 3;
   45|       |    }
   46|     11|    for _ in 0..10 {
   47|     10|        match is_true {
   48|      0|            false => {
   49|      0|                x = 1;
   50|      0|            }
   51|     10|            _ => {
   52|     10|                let _ = x;
   53|     10|            }
   54|       |        }
   55|     10|        x = 3;
   56|       |    }
   57|      1|    for _ in 0..10 {
   58|      1|        match is_true {
   59|      0|            false => {
   60|      0|                x = 1;
   61|      0|            }
   62|       |            _ => {
   63|      1|                break;
   64|       |            }
   65|       |        }
   66|      0|        x = 3;
   67|       |    }
   68|       |    let _ = x;
   69|      1|}