Files
swift-mirror/test/Interop/Cxx/class/Inputs/memory-layout.h
Saleem Abdulrasool fc070c6167 platform: restructure visualc module
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.
2022-06-26 14:06:59 -07:00

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