summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-03-25 19:11:17 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-03-25 19:11:17 +0100
commit3ff6354a7c7c04ffda21ce6f20ee77788659352c (patch)
tree88cbc1f8ad209ba16de109f846654dbd556cf6b6 /tests/accept/compile
parenta8f6d307a9fa4a27f54734604620e1763a8eafa5 (diff)
downloadNim-3ff6354a7c7c04ffda21ce6f20ee77788659352c.tar.gz
Bugfix: code generation bug that affected dialogs.nim
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-xtests/accept/compile/tbug538751.nim8
-rwxr-xr-xtests/accept/compile/temptyecho.nim2
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/accept/compile/tbug538751.nim b/tests/accept/compile/tbug538751.nim
new file mode 100755
index 000000000..c9ac45797
--- /dev/null
+++ b/tests/accept/compile/tbug538751.nim
@@ -0,0 +1,8 @@
+type
+    PNode = ref TNode
+    TNode = tuple[self: PNode]
+
+var node: PNode
+new(node)
+node.self = node
+
diff --git a/tests/accept/compile/temptyecho.nim b/tests/accept/compile/temptyecho.nim
new file mode 100755
index 000000000..5f1aa6515
--- /dev/null
+++ b/tests/accept/compile/temptyecho.nim
@@ -0,0 +1,2 @@
+echo()
+