From 6599cae2810148d0a36d9c2d9be964d73c514559 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Tue, 16 May 2017 23:09:19 +0300 Subject: Async macro fixes (#5739) --- tests/async/tasync_forward.nim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/async/tasync_forward.nim') diff --git a/tests/async/tasync_forward.nim b/tests/async/tasync_forward.nim index ffb7acafd..99527032f 100644 --- a/tests/async/tasync_forward.nim +++ b/tests/async/tasync_forward.nim @@ -7,3 +7,12 @@ 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) -- cgit 1.4.1-2-gfad0