summaryrefslogtreecommitdiff
path: root/tests/headers/issue-739-pointer-wide-bitfield.h
blob: eeb7ae9c2dfb5351cf88e02efb1b95bf4d4dd65c (plain)
1
2
3
4
5
6
7
8
9
// bindgen-flags: --raw-line '#![cfg(not(target_os="windows"))]'
#define POINTER_WIDTH (sizeof(void*) * 8)

struct Foo {
  unsigned long m_bitfield: POINTER_WIDTH;
  unsigned long m_bar: POINTER_WIDTH;
  unsigned long foo: 1;
  unsigned long bar: POINTER_WIDTH;
};