]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/basic_assignment.rs
1 // Copyright 2017 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.
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.
11 // this tests move up progration, which is not yet implemented
12 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
13 // file at the top-level directory of this distribution and at
14 // http://rust-lang.org/COPYRIGHT.
16 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
17 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
18 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
19 // option. This file may not be copied, modified, or distributed
20 // except according to those terms.
22 // check that codegen of assignment expressions is sane. Assignments
23 // tend to be absent in simple code, so subtle breakage in them can
24 // leave a quite hard-to-find trail of destruction.
32 let drop_x
: Option
<Box
<u32>> = None
;
39 // START rustc.node4.SimplifyCfg-initial.after.mir
49 // _4 = std::option::Option<std::boxed::Box<u32>>::None;
53 // replace(_6 <- _7) -> [return: bb5, unwind: bb4];
68 // drop(_7) -> [return: bb6, unwind: bb3];
73 // drop(_6) -> [return: bb7, unwind: bb2];
85 // END rustc.node4.SimplifyCfg-initial.after.mir