ast2 forward declaration support
This commit is contained in:
parent
4cfeea67a1
commit
be1e85934d
4 changed files with 37 additions and 2 deletions
|
|
@ -14,6 +14,11 @@ typedef int *A6;
|
|||
typedef A0 **A7;
|
||||
typedef void *A8;
|
||||
|
||||
// Forward declaration
|
||||
struct A0 {
|
||||
int f1;
|
||||
};
|
||||
|
||||
typedef char *A9p[3]; //, A9[4];
|
||||
typedef char *A10[3][6];
|
||||
typedef char *(*A11)[3];
|
||||
|
|
@ -67,6 +72,11 @@ typedef int *A6;
|
|||
typedef A0 **A7;
|
||||
typedef void *A8;
|
||||
|
||||
// Forward declaration
|
||||
struct A0 {
|
||||
int f1;
|
||||
};
|
||||
|
||||
typedef char *A9p[3]; //, A9[4];
|
||||
typedef char *A10[3][6];
|
||||
typedef char *(*A11)[3];
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ assert D == "hello"
|
|||
assert E == 'c'
|
||||
|
||||
assert A0 is object
|
||||
testFields(A0)
|
||||
testFields(A0, {"f1": "cint"}.toTable())
|
||||
assert A1 is A0
|
||||
testFields(A1)
|
||||
testFields(A1, {"f1": "cint"}.toTable())
|
||||
assert A2 is object
|
||||
testFields(A2)
|
||||
assert A3 is object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue