diff options
Diffstat (limited to 'tests/async/tasync_forward.nim')
-rw-r--r-- | tests/async/tasync_forward.nim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/async/tasync_forward.nim b/tests/async/tasync_forward.nim new file mode 100644 index 000000000..99527032f --- /dev/null +++ b/tests/async/tasync_forward.nim @@ -0,0 +1,18 @@ + +import asyncdispatch + +# bug #1970 + +proc foo {.async.} + +proc foo {.async.} = + discard + +# With additional pragmas: +proc bar {.async, cdecl.} + +proc bar {.async.} = + discard + +proc verifyCdeclPresent(p: proc : Future[void] {.cdecl.}) = discard +verifyCdeclPresent(bar) |