Skip to content

Commit

Permalink
Add test for constant array typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
rsammelson authored and emilio committed Feb 19, 2024
1 parent 41faf8e commit b5a6813
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
42 changes: 42 additions & 0 deletions bindgen-tests/tests/expectations/tests/const_array_typedef.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions bindgen-tests/tests/headers/const_array_typedef.h
@@ -0,0 +1,13 @@
typedef struct {
int field;
} strct;

typedef strct typ[1];

extern typ w;
extern strct *x;

extern const typ y;
extern const strct *z;

void function(const typ a, const strct *b);

0 comments on commit b5a6813

Please sign in to comment.