summaryrefslogtreecommitdiff
path: root/chapter21/src/test
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2025-03-18 15:13:30 -0700
committerCliff Click <cliffc@acm.org>2025-03-18 15:13:30 -0700
commitfbe1e0a84e154b17e09055b184f33cdb08a0138c (patch)
treea478ac34287885fdeb735cf0effd645255199c84 /chapter21/src/test
parent0b107134d7c4081a4529d9cbb15897bfcdc83910 (diff)
downloadSimple-fbe1e0a84e154b17e09055b184f33cdb08a0138c.tar.gz
Simple-fbe1e0a84e154b17e09055b184f33cdb08a0138c.zip
bugz
Fix RA bug using Win64 and not full spilling in a single block. riscv/arm demand SystemV calling convention Cleanup ch21 tests; add 1 export test
Diffstat (limited to 'chapter21/src/test')
-rw-r--r--chapter21/src/test/java/com/seaofnodes/simple/progs/Person.smp (renamed from chapter21/src/test/java/com/seaofnodes/simple/progs/fcn.smp)10
1 files changed, 5 insertions, 5 deletions
diff --git a/chapter21/src/test/java/com/seaofnodes/simple/progs/fcn.smp b/chapter21/src/test/java/com/seaofnodes/simple/progs/Person.smp
index 188e0a9f..ee3af311 100644
--- a/chapter21/src/test/java/com/seaofnodes/simple/progs/fcn.smp
+++ b/chapter21/src/test/java/com/seaofnodes/simple/progs/Person.smp
@@ -1,12 +1,12 @@
-
+// -*-java-*-
struct Person {
- int age;
+ int age;
};
val fcn = { Person?[] ps, int x ->
- val tmp = ps[x];
- if( ps[x] )
- ps[x].age++;
+ val tmp = ps[x];
+ if( ps[x] )
+ ps[x].age++;
};
Person?[] !ps = new Person?[2];