summaryrefslogtreecommitdiff
path: root/tests/headers/opaque_pointer.hpp
blob: 008689859b3da4f0297efb518b6b49ff7a6abef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq

/**
 * <div rustbindgen opaque></div>
 */
struct OtherOpaque {
    int c;
};

/**
 * <div rustbindgen opaque></div>
 */
template <typename T>
struct Opaque {
    T whatever;
};

struct WithOpaquePtr {
    Opaque<int>* whatever;
    Opaque<float> other;
    OtherOpaque t;
};