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