()
| 221 | |
| 222 | #[test] |
| 223 | fn allows_array_literals_through_assembly() { |
| 224 | let source = include_str!(concat!( |
| 225 | env!("CARGO_MANIFEST_DIR"), |
| 226 | "/programs/example/arrays_slices_and_ranges/arrays_slices_and_ranges.hll" |
| 227 | )); |
| 228 | |
| 229 | let mut pipeline = CompilationPipeline::new(); |
| 230 | pipeline.set_write_artifacts(false); |
| 231 | let result = pipeline |
| 232 | .compile(source) |
| 233 | .expect("array literal example should compile to IR"); |
| 234 | |
| 235 | let asm = pipeline.compile_ir_to_assembly(&result.ir_program).expect("valid IR layout"); |
| 236 | assert!( |
| 237 | asm.contains("array_literals") || asm.contains("main"), |
| 238 | "expected assembly output to be generated for the array literal example" |
| 239 | ); |
| 240 | } |
| 241 | |
| 242 | #[test] |
| 243 | fn allows_named_struct_alias_through_assembly() { |
nothing calls this directly
no test coverage detected