ast2 override final, void return and param fixes, multi proc support

This commit is contained in:
Ganesh Viswanathan 2020-03-23 22:07:39 -05:00
commit c5e978c2ef
4 changed files with 128 additions and 75 deletions

View file

@ -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]; };

View file

@ -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())