aboutsummaryrefslogtreecommitdiffstats
path: root/csc/cps-test.csc
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-06-21 20:14:25 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-06-21 20:14:25 -0700
commitc5fcc7d0f5c3f2f596f4d02d5e84283efce7eb52 (patch)
tree1b668d561077e49a7e5daa7f32eef36c630a1b23 /csc/cps-test.csc
parentComment expand-body. (diff)
downloadchromatopelma-c5fcc7d0f5c3f2f596f4d02d5e84283efce7eb52.tar.zst
More progress on CPS.
Diffstat (limited to 'csc/cps-test.csc')
-rw-r--r--csc/cps-test.csc18
1 files changed, 18 insertions, 0 deletions
diff --git a/csc/cps-test.csc b/csc/cps-test.csc
new file mode 100644
index 0000000..dd66078
--- /dev/null
+++ b/csc/cps-test.csc
@@ -0,0 +1,18 @@
+(import (scheme base)
+ (only (csc ir2)
+ ir2=?
+ make-atom
+ make-tail
+ make-constant)
+ (only (csc testing)
+ assert-equal
+ test)
+ (csc cps))
+
+
+(test atom-const
+ (assert-equal ir2=?
+ (make-atom
+ (make-constant 5)
+ (make-tail))
+ (ir1->ir2 (make-constant 5))))