summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-25 22:16:48 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-25 22:16:48 -0400
commit89a27e4159b2b01be96b5f8ca51832766e878c51 (patch)
tree6fdef2ee921598dfc44f1cf6e72ab555f0e20876 /tests
parent12679f9be4bd3a924ca0859a7ad133178513bace (diff)
len fix for variables
Diffstat (limited to 'tests')
-rw-r--r--tests/test_len.tnsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_len.tnsl b/tests/test_len.tnsl
new file mode 100644
index 0000000..a23b4df
--- /dev/null
+++ b/tests/test_len.tnsl
@@ -0,0 +1,20 @@
+struct A {
+ int i, j, k, l
+}
+
+struct B {
+ uint a, b, c, d
+}
+
+struct C {
+ bool x,
+ uint32 y
+}
+
+/; main [int]
+ A a
+ B b
+ C c
+ return len a + len b + len c
+;/
+