summary refs log tree commit diff stats
path: root/tests/reject/trefs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject/trefs.nim')
-rwxr-xr-xtests/reject/trefs.nim23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/reject/trefs.nim b/tests/reject/trefs.nim
deleted file mode 100755
index b157ca2b5..000000000
--- a/tests/reject/trefs.nim
+++ /dev/null
@@ -1,23 +0,0 @@
-discard """
-  file: "trefs.nim"
-  line: 20
-  errormsg: "type mismatch"
-"""
-# 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

-

-
-