summary refs log tree commit diff stats
path: root/tests/misc/m15955_main.nim
blob: a71af81219fd25180aefc72111fefd36dece68fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import stdtest/specialpaths
import std/os

const buildLib = buildDir / "libD20220923T19380"

{.passL: buildLib.}
proc add*(a, b: int):int {.cdecl, importc.}
proc sub*(a, b: int):int {.cdecl, importc.}

echo add(10, 5)
echo sub(10, 5)