Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
16
tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs
Normal file
16
tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
// unit-test
|
||||
// compile-flags: -O
|
||||
|
||||
// EMIT_MIR mutable_variable_unprop_assign.main.ConstProp.diff
|
||||
fn main() {
|
||||
let a = foo();
|
||||
let mut x: (i32, i32) = (1, 2);
|
||||
x.1 = a;
|
||||
let y = x.1;
|
||||
let z = x.0; // this could theoretically be allowed, but we can't handle it right now
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
fn foo() -> i32 {
|
||||
unimplemented!()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue