Add ast2 array expression support, cleanup debug output
This commit is contained in:
parent
077981c3a5
commit
3f500898aa
5 changed files with 36 additions and 26 deletions
|
|
@ -32,7 +32,7 @@ typedef struct { char *a1; int *a2[1]; } A19, *A19p;
|
|||
typedef struct A20 { char a1; } A20, A21, *A21p;
|
||||
|
||||
//Expression
|
||||
//typedef struct A21 { int **f1; int abc[123+132]; } A21;
|
||||
typedef struct A22 { int **f1; int *f2[123+132]; } A22;
|
||||
|
||||
//Unions
|
||||
//union UNION1 {int f1; };
|
||||
|
|
|
|||
|
|
@ -69,3 +69,6 @@ assert A20 is object
|
|||
testFields(A20, {"a1": "cchar"}.toTable())
|
||||
assert A21 is A20
|
||||
assert A21p is ptr A20
|
||||
|
||||
assert A22 is object
|
||||
testFields(A22, {"f1": "ptr ptr cint", "f2": "array[0..254, ptr cint]"}.toTable())
|
||||
Loading…
Add table
Add a link
Reference in a new issue