diff options
author | Travis Finkenauer <tmfinken@gmail.com> | 2017-06-16 01:32:13 -0700 |
---|---|---|
committer | Travis Finkenauer <tmfinken@gmail.com> | 2017-06-16 01:32:13 -0700 |
commit | 977ec6f7b1cafc14e2550e2ced49eaa584ee1297 (patch) | |
tree | a42f3eb6dee4c20e8fa761d674470c8acca035a3 /tests/headers/constify-module-enums-basic.h | |
parent | fb9959a647d446a6433b669215bda42c1da70cad (diff) |
Add more constified module enum tests
Diffstat (limited to 'tests/headers/constify-module-enums-basic.h')
-rw-r--r-- | tests/headers/constify-module-enums-basic.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/headers/constify-module-enums-basic.h b/tests/headers/constify-module-enums-basic.h new file mode 100644 index 00000000..631e8847 --- /dev/null +++ b/tests/headers/constify-module-enums-basic.h @@ -0,0 +1,17 @@ +// bindgen-flags: --constified-enum-module foo + +enum foo { + THIS, + SHOULD_BE, + A_CONSTANT, +}; + +typedef enum foo foo_alias1; +typedef foo_alias1 foo_alias2; + +struct bar { + enum foo this_should_work; +}; + +enum foo *func1(enum foo arg1, enum foo *arg2, enum foo **arg3); +foo_alias1 *func2(foo_alias1 arg1, foo_alias1 *arg2, foo_alias1 **arg3);
\ No newline at end of file |