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.
10 lines
100 B
C++
10 lines
100 B
C++
struct foo {
|
|
int baz;
|
|
double bar;
|
|
};
|
|
|
|
int main(void)
|
|
{
|
|
return (sizeof(foo::bar) == 4) ? 0 : 1;
|
|
}
|