polyvox/cmake/Modules/CheckCXX11Features/cxx11-test-sizeof_member_fail.cpp
Matt Williams a24fcc0c03 Add C++11 compiler support detection feature
This is currently copied from http://quickgit.kde.org/index.php?p=scratch%2Fdakon%2Fcmake-cxx11.git
but there is a chance that in future it will be merged into CMake proper.
2012-11-23 15:41:25 +00:00

10 lines
100 B
C++

struct foo {
int baz;
double bar;
};
int main(void)
{
return (sizeof(foo::bar) == 4) ? 0 : 1;
}