summaryrefslogtreecommitdiff
path: root/tests/test_funcall_4.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_funcall_4.tnsl')
-rw-r--r--tests/test_funcall_4.tnsl16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_funcall_4.tnsl b/tests/test_funcall_4.tnsl
new file mode 100644
index 0000000..4309766
--- /dev/null
+++ b/tests/test_funcall_4.tnsl
@@ -0,0 +1,16 @@
+struct Dummy {
+ int i, j
+}
+
+/; inout (Dummy in) [Dummy]
+ in.i = 68
+ return in
+;/
+
+/; main [int]
+ Dummy a
+ a.i = 1
+ a.j = 1
+ a = inout(a)
+ return a.i + a.j
+;/