• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // bindgen-flags: --opaque-type 'Template<int>'  --with-derive-hash --with-derive-partialeq --with-derive-eq -- -std=c++14
2 
3 template <typename T>
4 class Template {
5     T member;
6 };
7 
8 class ContainsInstantiation {
9     Template<char> not_opaque;
10 };
11 
12 class ContainsOpaqueInstantiation {
13     // We should not generate a layout test for this instantiation, and it
14     // should appear as an opaque blob of bytes in
15     // `ContainsOpaqueInstantiation`'s type definition.
16     Template<int> opaque;
17 };
18