diff options
Diffstat (limited to 'bindgen-tests/tests/headers/derive-custom.h')
-rw-r--r-- | bindgen-tests/tests/headers/derive-custom.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/derive-custom.h b/bindgen-tests/tests/headers/derive-custom.h new file mode 100644 index 00000000..8c57278c --- /dev/null +++ b/bindgen-tests/tests/headers/derive-custom.h @@ -0,0 +1,28 @@ +// bindgen-flags: --no-derive-debug --no-derive-copy --default-enum-style rust --no-layout-tests + +/** <div rustbindgen derive="Debug"></div> */ +struct my_type; + +/** <div rustbindgen derive="Clone"></div> */ +struct my_type; + +struct my_type { + int a; +}; + +/** + * <div rustbindgen derive="Debug"></div> + * <div rustbindgen derive="Clone"></div> + */ +struct my_type2; + +struct my_type2 { + unsigned a; +}; + +/** + * <div rustbindgen derive="Debug" derive="Clone"></div> + */ +struct my_type3 { + unsigned long a; +}; |