MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / allows_array_literals_through_assembly

Function allows_array_literals_through_assembly

tests/integration/spec_rules.rs:223–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221
222#[test]
223fn 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]
243fn allows_named_struct_alias_through_assembly() {

Callers

nothing calls this directly

Calls 3

set_write_artifactsMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected