Files
swift-mirror/test/Interop/Cxx/class/Inputs/bit-fields.h
John Hui d521a83ca5 [cxx-interop] Emit lvalue-to-rvalue conversion in synthesized bit-field getter
The getter body previously read the member as a prvalue, which tripped
Clang's C++11 constant evaluator assertion and crashed swift-frontend
when IR-generating bit-field accessors under -cxx-interoperability-mode.

rdar://158308810
2026-07-10 18:24:45 -07:00

11 lines
234 B
C

#ifndef TEST_INTEROP_CXX_CLASS_INPUTS_BIT_FIELDS_H
#define TEST_INTEROP_CXX_CLASS_INPUTS_BIT_FIELDS_H
struct BitFields {
unsigned a : 3;
unsigned b : 5;
unsigned c : 24;
};
#endif // TEST_INTEROP_CXX_CLASS_INPUTS_BIT_FIELDS_H