summary refs log tree commit diff stats
path: root/tests/misc/tstrdesc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tstrdesc.nim')
-rw-r--r--tests/misc/tstrdesc.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/tstrdesc.nim b/tests/misc/tstrdesc.nim
new file mode 100644
index 000000000..1479fcda8
--- /dev/null
+++ b/tests/misc/tstrdesc.nim
@@ -0,0 +1,14 @@
+var
+  x: array[0..2, int]
+
+x = [0, 1, 2]
+
+type
+  TStringDesc {.final.} = object
+    len, space: int # len and space without counting the terminating zero
+    data: array[0..0, char] # for the '\0' character
+
+var
+  emptyString {.exportc: "emptyString".}: TStringDesc
+
+