diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-03-23 22:07:39 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-03-23 22:07:39 -0500 |
| commit | c5e978c2efe8557862944a7471eb9a3356b0f3f4 (patch) | |
| tree | 83c405ea37dddefae681670866525e8dfbb17feb /tests | |
| parent | c113ecec986e4790a98c5c73f61864fe18c49bfe (diff) | |
| download | nimterop-c5e978c2efe8557862944a7471eb9a3356b0f3f4.tar.gz nimterop-c5e978c2efe8557862944a7471eb9a3356b0f3f4.zip | |
ast2 override final, void return and param fixes, multi proc support
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/tast2.h | 2 | ||||
| -rw-r--r-- | tests/tast2.nim | 2 |
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()) |
