summaryrefslogtreecommitdiff
path: root/tests/headers/derive-hash-struct-with-pointer.h
blob: 9c8ba0f92a1196cebdf367f97b7773c170d6653e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// bindgen-flags: --with-derive-hash --with-derive-partialord --with-derive-partialeq --with-derive-eq
//
/// Pointers can derive Hash/PartialOrd/PartialEq/Eq
struct ConstPtrMutObj {
    int* const bar;
};

struct MutPtrMutObj {
    int* bar;
};

struct MutPtrConstObj {
    const int* bar;
};

struct ConstPtrConstObj {
    const int* const bar;
};