2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_assignments)]
|
2015-03-22 20:13:15 +00:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-04-14 15:30:31 +00:00
|
|
|
#![allow(unreachable_code)]
|
2016-08-13 09:41:43 +00:00
|
|
|
#![allow(unused_variables)]
|
2013-08-17 15:37:42 +00:00
|
|
|
|
|
|
|
fn test(_cond: bool) {
|
2015-03-26 00:06:52 +00:00
|
|
|
let v: isize;
|
2012-05-19 12:52:01 +00:00
|
|
|
v = 1;
|
|
|
|
loop { } // loop never terminates, so no error is reported
|
|
|
|
v = 2;
|
|
|
|
}
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2013-05-03 23:25:04 +00:00
|
|
|
// note: don't call test()... :)
|
2012-05-19 12:52:01 +00:00
|
|
|
}
|