summaryrefslogtreecommitdiff
path: root/tests/headers/issue-1454.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/issue-1454.h')
-rw-r--r--tests/headers/issue-1454.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/headers/issue-1454.h b/tests/headers/issue-1454.h
new file mode 100644
index 00000000..96645dac
--- /dev/null
+++ b/tests/headers/issue-1454.h
@@ -0,0 +1,10 @@
+// bindgen-flags: --no-recursive-allowlist --allowlist-type "local_type" --with-derive-hash --no-derive-copy --no-derive-default --raw-line "#[repr(C)] #[derive(Debug)] pub struct extern_type;"
+// bindgen-parse-callbacks: blocklisted-type-implements-trait
+
+struct extern_type {};
+
+typedef struct
+{
+ struct extern_type inner;
+}
+local_type;