CMake/Tests/CompileFeatures/cxx_sizeof_member.cpp

11 lines
83 B
C++
Raw Normal View History

2014-04-06 12:09:37 +04:00
struct A
{
int m_i;
};
int someFunc()
{
return sizeof(A::m_i) > 0 ? 1 : 2;
}