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