summaryrefslogtreecommitdiff
path: root/tests/headers/derive-default-and-blocklist.hpp
blob: 20d938ccf24d3705a083463e1591901d647a0840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// bindgen-flags: --blocklist-type BlocklistMe --raw-line 'pub struct BlocklistMe(u8);'

// Note that we do not explicitly provide the `--with-derive-default` flag
// above, since it is added by the test runner implicitly.

struct BlocklistMe {};

/**
 * Because this type contains a blocklisted type, it should not derive
 * Default. Instead, we should emit a `mem::zeroed` implementation.
 */
struct ShouldNotDeriveDefault {
    BlocklistMe a;
};