summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/union_with_non_copy_member.h
blob: 764820a46d4dd57345b17fd930d47490ed2c6790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// bindgen-flags: --bindgen-wrapper-union 'WithBindgenGeneratedWrapper' --manually-drop-union 'WithManuallyDrop' --no-copy 'NonCopyType'

struct NonCopyType {
  int foo;
};

union WithBindgenGeneratedWrapper {
  struct NonCopyType non_copy_type;
  int bar;
};

union WithManuallyDrop {
  struct NonCopyType non_copy_type;
  int bar;
};

union WithDefaultWrapper {
  struct NonCopyType non_copy_type;
  int bar;
};