aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-18 17:39:25 +0200
committerlemon <lsof@mailbox.org>2022-08-18 17:39:25 +0200
commit9c485da5e1d955031fa2a3654bfc2ef814898167 (patch)
tree44e841ced0479d5ec82cca28733413784eedf52c /bootstrap/test.cff
parentf0214ff61b5a94b9629db6f43d7a5b010bd4ffbc (diff)
lots of goodnes
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap/test.cff b/bootstrap/test.cff
index 6f5242d..c7309a9 100644
--- a/bootstrap/test.cff
+++ b/bootstrap/test.cff
@@ -72,7 +72,7 @@ fn spanz(cstr *const u8) [#]const u8 {
defmacro transmute(Type, x) [
(do
union T { from typeof(x), to Type };
- T{x}.to;
+ (T{x}).to;
)
]
@@ -88,6 +88,9 @@ extern fn main (argc int, argv **u8) int {
let is []int = { [4] = 1, 2, [1 - 1] = 3 };
isort(is, is.#len);
+ each(i, x, is,
+ printf("%d\n", x);
+ )
each(i, x, is) {
printf("%d\n", x);
}