diff options
Diffstat (limited to 'tests/trefs.nim')
-rwxr-xr-x | tests/trefs.nim | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/trefs.nim b/tests/trefs.nim deleted file mode 100755 index ab3934088..000000000 --- a/tests/trefs.nim +++ /dev/null @@ -1,16 +0,0 @@ -# test for ref types (including refs to procs) - -type - TProc = proc (a, b: int): int {.stdcall.} - -proc foo(c, d: int): int {.stdcall.} = - return 0 - -proc wrongfoo(c, e: int): int {.inline.} = - return 0 - -var p: TProc -p = foo -write(stdout, "success!") -p = wrongfoo #ERROR_MSG type mismatch - |