summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/union_with_anon_unnamed_struct_1_0.h
blob: 506a41f661de46b1203d3682572f93082fcfc2f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq --with-derive-eq

union pixel {
    unsigned int rgba;
    struct {
        unsigned char r;
        unsigned char g;
        unsigned char b;
        unsigned char a;
    };
};