()
| 155 | |
| 156 | #[test] |
| 157 | fn nop() { |
| 158 | let code = String::from( |
| 159 | " |
| 160 | function %test() -> i8 { |
| 161 | block0: |
| 162 | nop |
| 163 | v1 = iconst.i8 -1 |
| 164 | v2 = iconst.i8 42 |
| 165 | return v1 |
| 166 | } |
| 167 | ; run: %test() == -1 |
| 168 | ", |
| 169 | ); |
| 170 | FileInterpreter::from_inline_code(code).run().unwrap() |
| 171 | } |
| 172 | |
| 173 | #[test] |
| 174 | fn filetests() { |