tests: Move run-pass tests without naming conflicts to ui
This commit is contained in:
parent
ca9faa52f5
commit
9be35f82c1
3226 changed files with 64 additions and 196 deletions
15
src/test/ui/for-loop-while/while-loop-constraints-2.rs
Normal file
15
src/test/ui/for-loop-while/while-loop-constraints-2.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// run-pass
|
||||
#![allow(unused_assignments)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
pub fn main() {
|
||||
let mut y: isize = 42;
|
||||
let mut z: isize = 42;
|
||||
let mut x: isize;
|
||||
while z < 50 {
|
||||
z += 1;
|
||||
while false { x = y; y = z; }
|
||||
println!("{}", y);
|
||||
}
|
||||
assert!((y == 42 && z == 50));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue