Lines
100 %
Functions
Branches
// Skipped under Miri: these tests compile+run wasm via wasmtime, whose
// Cranelift backend refuses to run under Miri.
#![cfg(not(miri))]
//! PERSIST rows: a global a SHOULD-APPLY of an earlier unit stores to stays a
//! cell in every later unit, which compiles that SHOULD-APPLY again.
#[path = "persist/rows.rs"]
mod persist;
use persist::{Row, assert_pinned, row};
fn rows() -> Vec<Row> {
vec![row(
"V3a",
&[
"(defvar *m* 5)",
"(defvar *seen* 0)",
"(defun should-apply () (setf *seen* *m*) t)",
"*seen*",
"(+ 1 2)",
],
)]
}
const CL: &[(&str, &[&str])] = &[("V3a", &["-", "-", "-", "5", "3", "5"])];
#[test]
fn every_row_reads_as_common_lisp() {
assert_pinned(&rows(), CL);