diff options
author | Jethro Beekman <jethro@fortanix.com> | 2021-03-10 19:16:47 +0100 |
---|---|---|
committer | Jethro Beekman <jethro@fortanix.com> | 2021-03-22 12:10:28 +0100 |
commit | 0780f804a89309417b6c99ccfc5d5941bdd38bab (patch) | |
tree | 55dacc667da5f09f4bb9381df08e8d94677ef2e0 /tests/headers | |
parent | 2a46e2924256b229653a558435259ca4968d5bd9 (diff) |
Add callback to check derives for blocklisted types
Fixes #1454 #2003
Diffstat (limited to 'tests/headers')
-rw-r--r-- | tests/headers/issue-1454.h | 10 |
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; |