first working linked list test

This commit is contained in:
Folkert 2023-05-17 20:07:44 +02:00
parent 3364d03fcc
commit e33c2b3c84
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 386 additions and 320 deletions

View file

@ -815,7 +815,13 @@ trait Backend<'a> {
self.load_literal_symbols([*ptr].as_slice());
self.expr_unbox(*sym, *ptr, element_layout)
}
x => todo!("the expression, {:?}", x),
Expr::NullPointer => {
self.load_literal_i64(sym, 0);
}
Expr::Reuse { .. } => todo!(),
Expr::Reset { .. } => todo!(),
Expr::ResetRef { .. } => todo!(),
Expr::RuntimeErrorFunction(_) => todo!(),
}
}