summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/derive-custom-cli.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/derive-custom-cli.h')
-rw-r--r--bindgen-tests/tests/headers/derive-custom-cli.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/derive-custom-cli.h b/bindgen-tests/tests/headers/derive-custom-cli.h
new file mode 100644
index 00000000..9b65536f
--- /dev/null
+++ b/bindgen-tests/tests/headers/derive-custom-cli.h
@@ -0,0 +1,14 @@
+// bindgen-flags: --default-enum-style rust --default-non-copy-union-style manually_drop --no-default=".*" --no-hash=".*" --no-partialeq=".*" --no-debug=".*" --no-copy=".*" --with-derive-custom="foo_[^e].*=Clone" --with-derive-custom-struct="foo.*=Default" --with-derive-custom-enum="foo.*=Copy" --with-derive-custom-union="foo.*=Copy"
+struct foo_struct {
+ int inner;
+};
+enum foo_enum {
+ inner = 0
+};
+union foo_union {
+ int fst;
+ float snd;
+};
+struct non_matching {
+ int inner;
+};