summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/opaque-template-instantiation.hpp
blob: fff49af287300c877565eba1745d7cf113c058fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// bindgen-flags: --opaque-type 'Template<int>'  --with-derive-hash --with-derive-partialeq --with-derive-eq -- -std=c++14

template <typename T>
class Template {
    T member;
};

class ContainsInstantiation {
    Template<char> not_opaque;
};

class ContainsOpaqueInstantiation {
    // We should not generate a layout test for this instantiation, and it
    // should appear as an opaque blob of bytes in
    // `ContainsOpaqueInstantiation`'s type definition.
    Template<int> opaque;
};