Files
swift-mirror/test/ClangImporter/Inputs/custom-modules/IndirectFields.h
Varun Gandhi 009d0e5481 Use name mangler to generate identifiers for fields of anonymous types.
Fixes issue SR-10571 and corresponding rdar://problem/50337188.
2019-07-19 10:43:05 -07:00

50 lines
699 B
C

struct StructWithIndirectField {
union {
int a;
int b;
};
int c;
int d : 3; /* Imported as a computed property */
};
struct StructWithIndirectField2 {
union {
unsigned v;
struct {
unsigned x : 8;
unsigned y : 8;
};
};
};
struct StructWithIndirectField2Copy {
union {
unsigned v;
struct {
unsigned x : 16;
unsigned y : 16;
};
};
};
union UnionWithIndirectField {
struct {
int a;
int b;
};
int c;
};
struct DeepIndirectField {
union {
struct {
int a;
int b;
};
struct {
int c;
int d;
};
};
};