diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-03-16 17:50:43 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-03-16 17:50:43 -0500 |
| commit | 3f500898aa5b45b423348846d794463585ef34ee (patch) | |
| tree | b386566f73f7f97bc3f2f87123f245126a757ade /tests | |
| parent | 077981c3a5e577029cf28bffc67648e73d4aafcc (diff) | |
| download | nimterop-3f500898aa5b45b423348846d794463585ef34ee.tar.gz nimterop-3f500898aa5b45b423348846d794463585ef34ee.zip | |
Add ast2 array expression support, cleanup debug output
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include/tast2.h | 2 | ||||
| -rw-r--r-- | tests/tast2.nim | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h index 1a2789b..ced3a44 100644 --- a/tests/include/tast2.h +++ b/tests/include/tast2.h @@ -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; }; diff --git a/tests/tast2.nim b/tests/tast2.nim index ffdcd19..dd8fae7 100644 --- a/tests/tast2.nim +++ b/tests/tast2.nim @@ -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())
\ No newline at end of file |
