aboutsummaryrefslogtreecommitdiff
path: root/tests/hold/accept/rank_order.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hold/accept/rank_order.zc')
-rw-r--r--tests/hold/accept/rank_order.zc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/hold/accept/rank_order.zc b/tests/hold/accept/rank_order.zc
new file mode 100644
index 0000000..9fc903a
--- /dev/null
+++ b/tests/hold/accept/rank_order.zc
@@ -0,0 +1,7 @@
+// expect: 10
+namespace;
+include rt;
+int gb();
+hold { shared let a; fn ga() { a++; return gb(); } }
+hold { shared let b; fn gb() { b++; return b * 10; } }
+fn main() { rt.put_n(ga()); rt.put_c(10); return 0; }