summaryrefslogtreecommitdiff
path: root/tests/headers/issue-739-pointer-wide-bitfield.h
blob: 611dab1da08f1cd756f4242de270e0e5652cef68 (plain)
1
2
3
4
5
6
7
8
#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;
};