mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Restructure the `visualc` module into `vcruntime` in order to help expose the various components (SAL, vcruntime, ucrt, corecrt, STL) for C++ modularization. Include the `stdint.h` textually to deal with redefinition of types in clang resources and MSVC.
23 lines
403 B
C++
23 lines
403 B
C++
#ifndef TEST_INTEROP_CXX_CLASS_INPUTS_MEMORY_LAYOUT_H
|
|
#define TEST_INTEROP_CXX_CLASS_INPUTS_MEMORY_LAYOUT_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
class PrivateMemberLayout {
|
|
uint32_t a;
|
|
|
|
public:
|
|
uint32_t b;
|
|
};
|
|
|
|
inline size_t sizeOfPrivateMemberLayout() {
|
|
return sizeof(PrivateMemberLayout);
|
|
}
|
|
|
|
inline size_t offsetOfPrivateMemberLayout_b() {
|
|
return offsetof(PrivateMemberLayout, b);
|
|
}
|
|
|
|
#endif
|