diff options
Diffstat (limited to 'tests/actor/regression/plain.zc')
| -rw-r--r-- | tests/actor/regression/plain.zc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/actor/regression/plain.zc b/tests/actor/regression/plain.zc new file mode 100644 index 0000000..307d80c --- /dev/null +++ b/tests/actor/regression/plain.zc @@ -0,0 +1,4 @@ +namespace; +include rt; +struct Counter { int value; fn add(int n) { this.value += n; return this.value; } } +fn main() { Counter c; rt.put_n(c.add(3)); rt.put_c(10); return 0; } |
