Skip to content

Incorrect layout with large bitfield #1007

@fitzgen

Description

@fitzgen

Follow up to #1001

Input C/C++ Header

struct {
  unsigned : 632;
} a;

Bindgen Invocation

$ bindgen input.h

Actual Results

Panic when running the layout tests: our generated struct ends up with the wrong size.

Expected Results

We generate a struct with the correct layout, and it passes its layout tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions