aboutsummaryrefslogtreecommitdiff
path: root/tests/actor/regression/generic_extensions.zc
blob: 4a4476d38b7516117bd5587529b1665198a43347 (plain) (blame)
1
2
3
4
5
6
7
8
namespace;
include rt, run;
run.syntax("record", run.kw_struct);
record Value { int amount; }
int calls;
fn tick() { calls++; return 0; }
run.statement_hook(tick);
fn main() { int value = 1; value++; rt.put_n(calls); rt.put_c(10); return 0; }