diff options
| author | Joey Yakimowich-Payne <jyapayne@gmail.com> | 2020-05-12 16:22:53 -0600 |
|---|---|---|
| committer | genotrance <dev@genotrance.com> | 2020-05-15 11:20:00 -0500 |
| commit | 32c98435486cff69f7ecbcfb2be3c8f1739fe177 (patch) | |
| tree | 62e0b0b528aa7631a970ce57fc4c64a0f3a3f54a /tests/include | |
| parent | fc587fae037c0443cc1a2ca64685ba1d3b9d62d3 (diff) | |
| download | nimterop-32c98435486cff69f7ecbcfb2be3c8f1739fe177.tar.gz nimterop-32c98435486cff69f7ecbcfb2be3c8f1739fe177.zip | |
Fix undefined identifiers resulting in incorrect types
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/tast2.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h index bbb3315..f28c003 100644 --- a/tests/include/tast2.h +++ b/tests/include/tast2.h @@ -49,6 +49,21 @@ extern "C" { #define ALLSHL (SHL1 | SHL2 | SHL3) +// const not supported yet +const int SOME_CONST = 8; + +struct some_struct_s +{ + int x; +}; + +struct parent_struct_s +{ + struct some_struct_s s[SOME_CONST]; +}; + +typedef struct some_struct_s SOME_ARRAY[SOME_CONST]; + struct A0; struct A1 {}; typedef struct A2; |
