summary refs log tree commit diff stats
path: root/tests/async/t7192.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/async/t7192.nim')
-rw-r--r--tests/async/t7192.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/async/t7192.nim b/tests/async/t7192.nim
new file mode 100644
index 000000000..9ac0e07c0
--- /dev/null
+++ b/tests/async/t7192.nim
@@ -0,0 +1,14 @@
+discard """
+output: '''
+testCallback()
+'''
+"""
+
+import asyncdispatch
+
+proc testCallback() =
+  echo "testCallback()"
+
+when true:
+  callSoon(testCallback)
+  poll()