summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/derive-hash-and-blocklist.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/derive-hash-and-blocklist.hpp')
-rw-r--r--bindgen-tests/tests/headers/derive-hash-and-blocklist.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/derive-hash-and-blocklist.hpp b/bindgen-tests/tests/headers/derive-hash-and-blocklist.hpp
new file mode 100644
index 00000000..51a3372f
--- /dev/null
+++ b/bindgen-tests/tests/headers/derive-hash-and-blocklist.hpp
@@ -0,0 +1,10 @@
+// bindgen-flags: --with-derive-hash --blocklist-type BlocklistMe --raw-line 'pub struct BlocklistMe(u8);'
+
+struct BlocklistMe {};
+
+/**
+ * Because this type contains a blocklisted type, it should not derive Hash.
+ */
+struct ShouldNotDeriveHash {
+ BlocklistMe a;
+};