1 // Copyright 2013-2014 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 // min-lldb-version: 310
15 #![allow(unused_variables)]
16 #![omit_gdb_pretty_printer_section]
18 // No need to actually run the debugger, just make sure that the compiler can
19 // handle locals in unreachable code.
24 let (ref y,z) = (1i32, 2u32);
29 let test = if some_predicate() { 1 } else { 2 };
30 while some_predicate() {
31 let abc = !some_predicate();
34 let abc = !some_predicate();
39 let abc = !some_predicate();
42 let def = !some_predicate();
50 let (ref y,z) = (1i32, 2u32);
55 let test = if some_predicate() { 1 } else { 2 };
56 while some_predicate() {
57 let abc = !some_predicate();
60 let abc = !some_predicate();
65 let abc = !some_predicate();
68 let def = !some_predicate();
73 fn after_diverging_function() {
76 let (ref y,z) = (1i32, 2u32);
81 let test = if some_predicate() { 1 } else { 2 };
82 while some_predicate() {
83 let abc = !some_predicate();
86 let abc = !some_predicate();
91 let abc = !some_predicate();
94 let def = !some_predicate();
103 let (ref y,z) = (1i32, 2u32);
107 for a in &[111i32] {}
108 let test = if some_predicate() { 1 } else { 2 };
109 while some_predicate() {
110 let abc = !some_predicate();
113 let abc = !some_predicate();
118 let abc = !some_predicate();
121 let def = !some_predicate();
127 fn after_continue() {
131 let (ref y,z) = (1i32, 2u32);
135 for a in &[111i32] {}
136 let test = if some_predicate() { 1 } else { 2 };
137 while some_predicate() {
138 let abc = !some_predicate();
141 let abc = !some_predicate();
146 let abc = !some_predicate();
149 let def = !some_predicate();
158 after_diverging_function();
167 fn some_predicate() -> bool { true || false }