summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-03-17 20:11:16 +0100
committerAraq <rumpf_a@web.de>2013-03-17 20:11:16 +0100
commit6ed18a8b2488821df057d38fabb1d7cd921d97e7 (patch)
tree31c0036108f1f6b497b2aab3b2cf33ec49704147 /tests
parent3703bb929b6214fa9fcafe32d03f7b0c46907e54 (diff)
downloadNim-6ed18a8b2488821df057d38fabb1d7cd921d97e7.tar.gz
fixes #366
Diffstat (limited to 'tests')
-rw-r--r--tests/compile/tobjconstr2.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/compile/tobjconstr2.nim b/tests/compile/tobjconstr2.nim
new file mode 100644
index 000000000..ef5446999
--- /dev/null
+++ b/tests/compile/tobjconstr2.nim
@@ -0,0 +1,8 @@
+type TFoo{.exportc.} = object
+ x:int
+
+var s{.exportc.}: seq[TFoo] = @[]
+
+s.add TFoo(x: 42)
+
+echo s[0].x