diff options
| author | 2022-08-07 17:23:35 +0200 | |
|---|---|---|
| committer | 2022-08-07 17:23:35 +0200 | |
| commit | 855834ed40250f35fe5de5e304173ec69059e2fc (patch) | |
| tree | 093435fcaff9d62bdca0f8a169460b58eb64830b /bootstrap/test2.cff | |
| parent | b348c470ff065400ff149da6ccefa8fd8f22e9be (diff) | |
constant defs
Diffstat (limited to 'bootstrap/test2.cff')
| -rw-r--r-- | bootstrap/test2.cff | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff index 7a61f28..3532f4a 100644 --- a/bootstrap/test2.cff +++ b/bootstrap/test2.cff @@ -12,11 +12,15 @@ struct Bit<T> { fn neg(x T) T { return ~x; } } +def X = 7 + 2, + Y = 3.3; + extern fn main() void { let n Node<int> = {#null, 0}; let n Node<int> = {&n, 1}; let x int #?; + x = X + 1 + Y; printf("n %d\n", n.value); printf("n link %d\n", n.link.value); |