summary refs log tree commit diff stats
path: root/tests/ccgbugs/tcgbug.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tcgbug.nim')
-rw-r--r--tests/ccgbugs/tcgbug.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ccgbugs/tcgbug.nim b/tests/ccgbugs/tcgbug.nim
index 417b909ae..535424a27 100644
--- a/tests/ccgbugs/tcgbug.nim
+++ b/tests/ccgbugs/tcgbug.nim
@@ -19,5 +19,18 @@ var
 new(a)
 q(a)
 
+# bug #914
+var x = newWideCString("Hello")
+
 echo "success"
 
+
+# bug #833
+
+type
+  PFuture*[T] = ref object
+    value*: T
+    finished*: bool
+    cb: proc (future: PFuture[T]) {.closure.}
+
+var k = PFuture[void]()