Globals work, sizes are no longer part of the grammar

This commit is contained in:
2023-11-13 19:54:04 -06:00
parent dbdafbfd4b
commit 640ef91306
11 changed files with 54 additions and 35 deletions
+14
View File
@@ -126,6 +126,20 @@ fn array_test() {
)
}
#[test]
fn global_test() {
// Declare an array and do things
assert_eq!(
main_return(
"global a;
fn main() {
a = 10;
return a;
}"),
10
)
}
//#[test]
// This is no longer cursed, or a test. The revised calling convention with the pool pointer makes
// it now perfectly sane. Left here for posterity.