mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Like C bitfields. Fixes a crash in the InitializeStaticGlobals pass in case a global having a C struct type with bitfield is initialized statically.
13 lines
86 B
C
13 lines
86 B
C
|
|
struct S {
|
|
int a;
|
|
int b : 8;
|
|
};
|
|
|
|
struct S2 {
|
|
int a;
|
|
int :4;
|
|
int b;
|
|
};
|
|
|