summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/constify-module-enums-basic.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/constify-module-enums-basic.h')
-rw-r--r--bindgen-tests/tests/headers/constify-module-enums-basic.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/constify-module-enums-basic.h b/bindgen-tests/tests/headers/constify-module-enums-basic.h
new file mode 100644
index 00000000..631e8847
--- /dev/null
+++ b/bindgen-tests/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