]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | // MIR for `main` after SimplifyCfg-elaborate-drops |
2 | ||
3 | fn main() -> () { | |
fe692bf9 FG |
4 | let mut _0: (); |
5 | let _1: &[u8; 3]; | |
ba9703b0 | 6 | scope 1 { |
fe692bf9 FG |
7 | debug x => _1; |
8 | let _2: [u8; 2]; | |
ba9703b0 | 9 | scope 2 { |
fe692bf9 | 10 | debug y => _2; |
ba9703b0 XL |
11 | } |
12 | } | |
13 | ||
14 | bb0: { | |
fe692bf9 FG |
15 | StorageLive(_1); |
16 | _1 = const b"foo"; | |
17 | StorageLive(_2); | |
18 | _2 = [const 5_u8, const 120_u8]; | |
19 | _0 = const (); | |
20 | StorageDead(_2); | |
21 | StorageDead(_1); | |
22 | return; | |
ba9703b0 XL |
23 | } |
24 | } | |
25 | ||
ed00b5ec | 26 | ALLOC0 (size: 3, align: 1) { |
ba9703b0 XL |
27 | 66 6f 6f │ foo |
28 | } |