summaryrefslogtreecommitdiff
path: root/tnslc/tests/proper_calling.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/tests/proper_calling.tnsl')
-rw-r--r--tnslc/tests/proper_calling.tnsl25
1 files changed, 0 insertions, 25 deletions
diff --git a/tnslc/tests/proper_calling.tnsl b/tnslc/tests/proper_calling.tnsl
deleted file mode 100644
index 4480b31..0000000
--- a/tnslc/tests/proper_calling.tnsl
+++ /dev/null
@@ -1,25 +0,0 @@
-struct CallMe {
- int a, b
-}
-
-/; method CallMe
- /; call_two (int a, b) [int]
- return a + b + self.a + self.b
- ;/
-
- /; call_three (int a, b, c) [int]
- return self.call_two(a, b) + self.call_two(a, b) + c
- ;/
-
- /; call_four (int a, b, c, d) [int]
- return self.call_three(a, b, c) + self.call_three(b, c, d)
- ;/
-
-;/
-
-/; main [int]
- CallMe cm
- cm.a = 0
- cm.b = 0
- return cm.call_four(2, 0, 0, 1)
-;/ \ No newline at end of file