summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl21
1 files changed, 14 insertions, 7 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index c91eee4..a130386 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -1,13 +1,20 @@
-struct Init {
- ~int a, b
+struct TTT {
+ int a, b, c
}
-/; method Init
+/; asdf [TTT]
+ TTT out
+ out.a = 0
+ out.b = 0
+ return out
+;/
+
+/; main (int argc, ~~uint8 argv) [int]
+
+ TTT out
+ out = asdf()
- /; set (int a)
- self.b` = a
- ;/
-
+ return out.a
;/