Skip to content

Commit 0466e74

Browse files
rsammelsonemilio
authored andcommitted
Add test for constant array typedef
1 parent 91c8e91 commit 0466e74

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

bindgen-tests/tests/expectations/tests/const_array_typedef.rs

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
typedef struct {
2+
int field;
3+
} strct;
4+
5+
typedef strct typ[1];
6+
7+
extern typ w;
8+
extern strct *x;
9+
10+
extern const typ y;
11+
extern const strct *z;
12+
13+
void function(const typ a, const strct *b);

0 commit comments

Comments
 (0)