diff options
Diffstat (limited to 'tests/headers/constify-module-enums-typedef.h')
-rw-r--r-- | tests/headers/constify-module-enums-typedef.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/headers/constify-module-enums-typedef.h b/tests/headers/constify-module-enums-typedef.h new file mode 100644 index 00000000..e82afc6b --- /dev/null +++ b/tests/headers/constify-module-enums-typedef.h @@ -0,0 +1,18 @@ +// bindgen-flags: --constified-enum-module foo + +typedef enum foo { + THIS, + SHOULD_BE, + A_CONSTANT, + ALSO_THIS = 42, + AND_ALSO_THIS = 42, +} foo; + +typedef foo foo_alias1; +typedef foo_alias1 foo_alias2; + +typedef struct bar { + foo member1; + foo_alias1 member2; + foo_alias2 member3; +} bar; |