CMake/Tests/CompileFeatures/cxx_sizeof_member.cpp

11 lines
83 B
C++

struct A
{
int m_i;
};
int someFunc()
{
return sizeof(A::m_i) > 0 ? 1 : 2;
}