()
| 173 | reject( |
| 174 | r#" |
| 175 | main: () -> i32 { |
| 176 | a: f64 = 4.0 |
| 177 | b: f64 = 2.0 |
| 178 | c: f64 = a << b |
| 179 | return 0 |
| 180 | } |
| 181 | "#, |
| 182 | "Shl", |
| 183 | ); |
| 184 | } |
| 185 | |
| 186 | // --- Valid programs that must continue to compile --- |
| 187 | |
| 188 | #[test] |
| 189 | fn variable_defined_before_use_is_accepted() { |
| 190 | accept( |