summary refs log tree commit diff stats
path: root/tests/async/tasync_forward.nim
blob: 99527032f43fca70ef1d2343700bb1e0b4f2b6ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)