diff options
author | Araq <rumpf_a@web.de> | 2012-07-17 01:27:25 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-17 01:27:25 +0200 |
commit | 4f582da27f1c31dfc149873bcfbfd06eba80edb9 (patch) | |
tree | 0808eb27bc1786ccb592627c150356261845bf30 /tests/compile | |
parent | 5e3d42a929acd347fd22bd8e9179040cf018109f (diff) | |
download | Nim-4f582da27f1c31dfc149873bcfbfd06eba80edb9.tar.gz |
make tests green again
Diffstat (limited to 'tests/compile')
-rwxr-xr-x | tests/compile/tnewlibs.nim | 2 | ||||
-rwxr-xr-x | tests/compile/tobjcov.nim | 2 | ||||
-rw-r--r-- | tests/compile/tvoid.nim | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/compile/tnewlibs.nim b/tests/compile/tnewlibs.nim index 041316290..bdb53ae0b 100755 --- a/tests/compile/tnewlibs.nim +++ b/tests/compile/tnewlibs.nim @@ -11,7 +11,7 @@ import cairowin32, cairoxlib, gl, glut, glu, glx, glext, wingl, lua, lualib, lauxlib, mysql, sqlite3, db_mongo, md5, asyncio, mimetypes, - cookies, events, ftpclient + cookies, events, ftpclient, scgi, irc writeln(stdout, "test compilation of binding modules") diff --git a/tests/compile/tobjcov.nim b/tests/compile/tobjcov.nim index 17bc8d80d..40360020a 100755 --- a/tests/compile/tobjcov.nim +++ b/tests/compile/tobjcov.nim @@ -11,7 +11,7 @@ proc bp(x: var TB) = x.b[high(x.b)] = -1 # in Nimrod proc (x: TB) is compatible to proc (x: TA), # but this is not type safe: -var f = cast[proc (x: var TA)](bp) +var f = cast[proc (x: var TA) {.nimcall.}](bp) var a: TA f(a) # bp expects a TB, but gets a TA diff --git a/tests/compile/tvoid.nim b/tests/compile/tvoid.nim index b286010dc..bb569e7f8 100644 --- a/tests/compile/tvoid.nim +++ b/tests/compile/tvoid.nim @@ -11,7 +11,7 @@ proc ReturnT[T](x: T): T = proc nothing(x, y: void): void = echo "ha" -proc callProc[T](p: proc (x: T), x: T) = +proc callProc[T](p: proc (x: T) {.nimcall.}, x: T) = when T is void: p() else: |