summaryrefslogtreecommitdiff
path: root/tests/headers/derive-partialeq-and-blocklist.hpp
blob: 953d0677142f8b7d22e79e1d690cc55697276afa (plain)
1
2
3
4
5
6
7
8
9
10
11
// bindgen-flags: --with-derive-partialeq --blocklist-type BlocklistMe --raw-line 'pub struct BlocklistMe(u8);'

struct BlocklistMe {};

/**
 * Because this type contains a blocklisted type, it should not derive
 * PartialEq.
 */
struct ShouldNotDerivePartialEq {
    BlocklistMe a;
};