summaryrefslogtreecommitdiff
path: root/tests/headers/opaque_pointer.hpp
blob: 53f8ce1fa836a6a42de58ed24842191c9c596ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

/**
 * <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;
};