]>
Commit | Line | Data |
---|---|---|
5bcae85e SL |
1 | // Copyright 2016 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
9e0c209e SL |
11 | // ignore-tidy-linelength |
12 | ||
5bcae85e SL |
13 | fn main() { |
14 | let a = 0; | |
15 | { | |
16 | let b = &Some(a); | |
17 | } | |
18 | let c = 1; | |
19 | } | |
20 | ||
21 | // END RUST SOURCE | |
9e0c209e | 22 | // START rustc.node4.TypeckMir.before.mir |
5bcae85e | 23 | // bb0: { |
c30ab7b3 SL |
24 | // StorageLive(_1); |
25 | // _1 = const 0i32; | |
26 | // StorageLive(_3); | |
27 | // StorageLive(_4); | |
28 | // StorageLive(_5); | |
29 | // _5 = _1; | |
30 | // _4 = std::option::Option<i32>::Some(_5,); | |
31 | // _3 = &_4; | |
32 | // StorageDead(_5); | |
33 | // _2 = (); | |
34 | // StorageDead(_4); | |
35 | // StorageDead(_3); | |
36 | // StorageLive(_6); | |
37 | // _6 = const 1i32; | |
38 | // _0 = (); | |
39 | // StorageDead(_6); | |
40 | // StorageDead(_1); | |
41 | // return; | |
5bcae85e | 42 | // } |
9e0c209e | 43 | // END rustc.node4.TypeckMir.before.mir |