new file: src/ch2/linkedlist.rs
modified: .gitignore modified: src/ch2/linkedlist.rs modified: src/ch2/mod.rs
This commit is contained in:
parent
c3214191ff
commit
afed4d2856
|
@ -0,0 +1,10 @@
|
||||||
|
pub mod tests {
|
||||||
|
use compiler::backend::{AddInst, Block, BranchInst, BranchOp, Inst, JmpInst, MvInst, REG_A0, REG_A1, REG_A2, REG_RA, REG_S0, REG_S1, REG_S2, REG_SP, SdInst};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
pub fn linked() {
|
||||||
|
// createLinkedList
|
||||||
|
let mut entry = Block::new("entry".into());
|
||||||
|
let addispsp_16 = Inst::Add(AddInst::new(REG_SP.into(), REG_SP.into()))
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue