aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/include/tast2.h2
-rw-r--r--tests/tast2.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h
index b867020..84505db 100644
--- a/tests/include/tast2.h
+++ b/tests/include/tast2.h
@@ -25,7 +25,7 @@ typedef char *(*A11)[3];
typedef struct A1 *A111[12];
typedef int **(*A12)(int, int b, int *c, int *, int *count[4], int (*func)(int, int));
-typedef int A13(int, int);
+typedef int A13(int, int, void (*func)(void));
struct A14 { volatile char a1; };
struct A15 { char *a1; const int *a2[1]; };
diff --git a/tests/tast2.nim b/tests/tast2.nim
index 914d40f..56b1868 100644
--- a/tests/tast2.nim
+++ b/tests/tast2.nim
@@ -54,7 +54,7 @@ assert A11 is ptr array[3, cstring]
assert A111 is array[12, ptr A1]
assert A12 is proc(a1: cint, b: cint, c: ptr cint, a4: ptr cint, count: array[4, ptr cint], `func`: proc(a1: cint, a2: cint): cint): ptr ptr cint
-assert A13 is proc(a1: cint, a2: cint): cint
+assert A13 is proc(a1: cint, a2: cint, `func`: proc()): cint
assert A14 is object
testFields(A14, {"a1": "cchar"}.toTable())